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\')
Can try for svg format:
plt.savefig("filepath.svg", format = 'svg', dpi=300)