Matplotlib giving error "OverflowError: In draw_path: Exceeded cell block limit" Matplotlib giving error "OverflowError: In draw_path: Exceeded cell block limit" python-3.x python-3.x

Matplotlib giving error "OverflowError: In draw_path: Exceeded cell block limit"


The problem is a hardcoded limit in the number of points in the backend Agg.

Try using:

import matplotlib as mplmpl.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


The problem is a hardcoded limit in the number of points in the backend Agg.

It can be solved by mpl.rcParams['agg.path.chunksize'] = 10000.

You can find the issue and the solution proposed here: https://github.com/matplotlib/matplotlib/issues/5907


Maybe the problem is because matplotlib uses default inline plotting, which means it connects the points. There's some limit to the points for that. But if you remove inline plotting, it might work. Try

import matplotlib.pyplot as pltplt.plot(x, y, 'ro', linestyle="None")

The 'ro' is for it to show red dots.