I just realized that agg backends can throw an OverflowError when dealing with large datasets (in draw_path, self._renderer.draw_path throws OverflowError). I wonder if it would be a good idea to automatically set nmax (i.e., the agg.path.chunksize config param) to a larger value and retry the plot.
The chunking is disabled by the default value (0) of agg.path.chunksize. There are other conditions on the chunking; it works only for simple lines. I suspect it hasn't been used in many years. Path simplification handles most of the cases where it would have been needed. It's not clear to me that there is any point in keeping it.
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!
Activity
tacaswell commented on May 5, 2015
I am not a huge fan of adaptive magic like that.
@efiring It looks like you added this feature in 2008, thoughts?
efiring commented on May 5, 2015
The chunking is disabled by the default value (0) of agg.path.chunksize. There are other conditions on the chunking; it works only for simple lines. I suspect it hasn't been used in many years. Path simplification handles most of the cases where it would have been needed. It's not clear to me that there is any point in keeping it.
tacaswell commented on May 24, 2015
@anntzer Do you have an example where this has actually been a problem?
API: remove agg path chunking logic
anntzer commented on May 24, 2015
Basically the same as the ones mentioned by @efiring in #4464, i.e. plotting very long lines.
github-actions commented on Oct 9, 2023
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!