|
From: <ch...@se...> - 2008-10-14 22:22:30
|
On Tue, Oct 14, 2008 at 11:21:58PM +0300, Jouni K. Sepp?nen wrote: > Jouni K. Sepp?nen <jk...@ik...> writes: > > > 2008-03-23 Fix a pdf backend bug which sometimes caused the outermost > > gsave to not be balanced with a grestore. - JKS > > > > Can you upgrade to 0.91.4? > > Here's the relevant patch, in case applying it is more convenient than > upgrading: > > Index: lib/matplotlib/backends/backend_pdf.py > =================================================================== > --- lib/matplotlib/backends/backend_pdf.py (revision 5017) > +++ lib/matplotlib/backends/backend_pdf.py (revision 5018) > @@ -1159,7 +1159,7 @@ > self.tex_font_map = None > > def finalize(self): > - self.gc.finalize() > + self.file.output(*self.gc.finalize()) > > def check_gc(self, gc, fillcolor=None): > orig_fill = gc._fillcolor Jouni thanks! you 1 line change appears to fix all! cs |