zorder seems to cause problems when embed python in latex files

Jouni K. Sepp�nen <jks@...397...> 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:

Jouni

thanks! you 1 line change appears to fix all!

cs

···

On Tue, Oct 14, 2008 at 11:21:58PM +0300, Jouni K. Sepp?nen wrote:

Jouni K. Sepp?nen <jks@...397...> 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