You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PDF output does not respect zorder when using imshow #2517
I think this comes from the fact that in the vector backends, images are "simplified" into a single image. We should probably discuss whether we want to continue doing that or perhaps make it optional.
Activity
mdboom commentedon Oct 14, 2013
I think this comes from the fact that in the vector backends, images are "simplified" into a single image. We should probably discuss whether we want to continue doing that or perhaps make it optional.
pelson commentedon Oct 28, 2013
I could have sworn it was optional already....
http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure (see suppressComposite). It turns out you can configure the behaviour on the figure, but not on the Axes.
To fix this on PDF output one would need to override the "option_image_nocomposite" method on the renderer (PDF renderer in this case).
tacaswell commentedon Feb 21, 2014
@pelson This seems to be an already fixed case, closing. Please re-open if I am confused.
FIX Issue matplotlib#2517: PDF does not repsect zorder
FIX Issue matplotlib#2517: PDF does not repsect zorder
christianbrodbeck commentedon Sep 26, 2014
Having the same problem. As normal user, how do I fix this? Inserting this does not work, nor does False:
tacaswell commentedon Sep 27, 2014
Ah, I was confused when I closed closed this before.
tacaswell commentedon Jul 17, 2015
@Khodeir It looks like you were working on this, did that ever turn into a PR?
tacaswell commentedon Jul 17, 2015
@stretch97 I could have sworn that we fixed this as part of a different issue...
tacaswell commentedon Jul 17, 2015
This is fixed by #4061
Adding
to the script suppresses the compositing of images which lets z-order be respected (but makes your pdf files bigger).