Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Enh improve agg chunks error#19343
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Enh improve agg chunks error#19343
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
150617a
to6cfa6ed
Comparec01a41d
to52f7610
Compare52f7610
toc19d49f
Comparec19d49f
to51ae0a8
CompareUh oh!
There was an error while loading.Please reload this page.
The error messages now provide better instruction on how to fix theproblem.There are some paths we can not split (one with hatching, fills, orthat claim they can not be simplified) so tell user that.If we could have otherwise split up the path if the chunksize is setto less than 100, which disables the feature, ask user to make itbigger or make the path simplification more aggressive.If the chunksize is bigger than the data, ask user to make it smalleror make the path simplification more aggressive.If the chunksize is smaller than the data, but still too big ask userto make it smaller or make the path simplification more aggressive.closesmatplotlib#19325Co-authored-by: Antony Lee <anntzer.lee@gmail.com>
This allows longer, more textured, paths to be drawn with the defaultsettings at the risk of very long run times.
- Make sure values are be big enough / small enough- make long path test more pathological (Random data will sometimes go in the same direction)
51ae0a8
to09fa321
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I've had a look over and it looks good - there's one change I don't understand at all though (left a comment) so I'm not personally comfortable approving yet.
@@ -45,7 +45,7 @@ RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi) | |||
rendererBase(), | |||
rendererAA(), | |||
rendererBin(), | |||
theRasterizer(8192), | |||
theRasterizer(32768), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
What's the meaning of this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
And does it need documenting in an API change note?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That is:
- makes the upper limit higher so it will be hit less often
…343-on-v3.5.xBackport PR#19343 on branch v3.5.x (Enh improve agg chunks error)
…unks_errorEnh improve agg chunks error
PR Summary
This does 2 important things:
and 2 less important things:
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).