New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
very high negative zorder breaks vector graphic rendering #1316
Conversation
On Thu, Sep 27, 2012 at 3:12 PM, megies notifications@github.com wrote:
Do you also see this behaviour saving a PDF with the Agg and Cairo backends? Damon McDougall |
The same happens with agg backend. To test cairo i would have to make additional installs. I could do that if it is important to solve this. |
On Thursday, September 27, 2012, megies wrote:
No that's ok. I jut wanted to know if the problem was with the PDF backend. I wonder if it happens with any vector format. Could you try the PS backend Damon McDougall |
I can confirm the problem with both AGG and PS backend saving to .ps files. |
On Thu, Sep 27, 2012 at 4:21 PM, megies notifications@github.com wrote:
Great, thanks. Damon McDougall |
This is apparently a feature since 2009: You need to call I'm not sure why zorder was overloaded in this way -- we may want to come up with a better solution for a future release. |
Nice catch. Interesting. This sure is unexpected from (my) end user point of view. |
@megies I'd like you to try one more test. Can you test with the following values of
|
@mdboom Beat me to it! :) |
Technically this is resolved, but I'd rather leave it open because there is a better way to deal with the rasterisation |
I agree it's confusing to use the same property for two purposes. However, just adding a rasterize flag isn't the answer either -- in formats that don't support alpha blending, the rasterized stuff always has to be drawn first (hence the implicit connection between zorder and rasterizing). One easy solution might be to set the default |
Sounds good to me. |
@mdboom That sounds better. Would you like me to implement that change as a pull request? Or would you like to do it? |
Doesn't matter to me, but I probably won't get to it today. |
very high negative zorder breaks vector graphic rendering
I have stumbled over a problem in vector graphic output with the pdf backend in combination with very high negative zorders (high positive values seem to be ok). Using the following example you see that for very high, negative zorder values the object gets visualized as bitmap.
I have verified this on matplotlib compiled from current master (Debian Squeeze, Python 2.6.6, with additional numpy 1.6.2).
While this is obviously easy to circumvent (use reasonable zorder values ;)), I nevertheless think this should be fixed.