Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix/zorder rasterization #24768

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

Merged
merged 5 commits into from
Dec 22, 2022
Merged

Conversation

tacaswell
Copy link
Member

PR Summary

closes #24235

This is a bug fix, but I think it is too big to backport and we broke this a while ago so this is not an urgent regression.

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • [N/A] Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • [N/A] New plotting related features are documented with examples.

If an artist was rasterized both by setting state on the artist and
be being below the z-order threshold than we would try to stop rasterization
one too many times.

This constructions lets us re-use the `allow_rasterization` logic.

closes matplotlib#24235
@tacaswell tacaswell added this to the v3.7.0 milestone Dec 18, 2022
@tacaswell tacaswell closed this Dec 19, 2022
@tacaswell tacaswell reopened this Dec 19, 2022
Co-authored-by: Elliott Sales de Andrade <[email protected]>
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_draw_rasterized is a bit of a clever hack, but it seems a good way to ensure that rasterization is fully wrapped and handles exceptions, etc. Perhaps it could do with a docstring?

Co-authored-by: Elliott Sales de Andrade <[email protected]>
@ksunden
Copy link
Member

ksunden commented Dec 21, 2022

Anyone can merge upon test completion

@QuLogic QuLogic merged commit f28b843 into matplotlib:main Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: pcolormesh(rasterized=True) conflicts with set_rasterization_zorder()
3 participants