I recommend you to use LineCollection as it is rasterized as a single image.
For example,
from matplotlib.collections import LineCollection
d = [np.array([ts[0], ys1]).T for ys1 in ys]
lc = LineCollection(d, color='r', lw=0.5, alpha=0.5,
rasterized=True)
Hi Everyone,
I'm having problems when rasterizing many lines in a plot using the
rasterized=True keyword using the pdf output.
Some version info:
matplotlib version 1.1.1rc
ubuntu 12.04
python 2.7.3
Here's a basic example that demonstrates my problem:
# Import matplotlib to create a pdf