-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Huge off-screen filled polygons cause agg rasterizer to fail #3909
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
Comments
Yes -- we have a clipper that works for non-filled paths, but it gets turned off for filled ones. We need to implement a clipper that supports filled paths. Any takers? |
Really? I didn't know that. Second time in a week that Clipper (http://www.angusj.com/delphi/clipper.php) has come up... Definitely an interesting problem. |
I was going to try out clipper, but if I'm not mistaken, the example given works on master (and maybe even 2.1.2)? |
Perhaps #9488 would be of interest for you (haven't looked at that recently though). |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
My testing wasn't exhaustive, but this works fine on modern Matplotlib. If there are any followups, please open a new big report. |
Polygons are always fully rasterized before being clipped to viewport size. It causes rasterizer to fail in presence of huge polygons which extend outside current plotting limits.
matplotlib.pyplot.fill_between is a command that can produce such polygons inadvertently (zooming a plot with fill_between can also produce this error).
A simple example
Crashes (trace from 1.4.2 but problem is present in master as well)
While the desired result would be

The text was updated successfully, but these errors were encountered: