I am plotting three sets of roughly 20 time series. Each time series has 1.8 million points and I am plotting them separately. In order to reduce execution time (because I f
when setsmatplotlib.pyplot.rcParams['agg.path.chunksize'] = 20000, my problem is solved. The png figure is fine.
matplotlib.pyplot.rcParams['agg.path.chunksize'] = 20000