I want to generate a vector plot with matplotlib. I tried hard - but the output is a raster image. Here\'s what I use:
import matplotlib matplotlib.use(\'Agg\')
Try exporting as a pdf or svg as described in http://neuroscience.telenczuk.pl/?p=331 If you need an eps the pdf2ps command works great.