Issue
I'm trying to render an image using matplotlib
with 100000000 data points and it produces the error OverflowError: In draw_path: Exceeded cell block limit
. Is there a limit in the amount of data points it can draw?
Solution
The problem is a hardcoded limit in the number of points in the backend Agg.
Try using:
import matplotlib as mpl
mpl.rcParams['agg.path.chunksize'] = 10000
or other large value.
You can find the issue and the solution proposed here: https://github.com/matplotlib/matplotlib/issues/5907
Answered By - Serenity
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.