zorder seems to cause problems when embed python in latex files

chris@...1388... writes:

I also attached the final PDF since you asked for it.

You didn't mention your matplotlib version, but the embedded pdf file
seems to come from matplotlib 0.91.2. That version had a bug where the
graphics context was not always restored properly, which could very well
be the cause of your problem:

  2008-03-23 Fix a pdf backend bug which sometimes caused the outermost
             gsave to not be balanced with a grestore. - JKS
    ...
  2008-01-06 Released 0.91.2 at revision 4802

Can you upgrade to 0.91.4?

···

--
Jouni K. Sepp�nen