Jouni K. Seppänen <[EMAIL PROTECTED]> 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 K. Seppänen
http://www.iki.fi/jks
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to