python - matplotlib bitmap plot with vector text -


so, i'm plotting waveform (and other things) result in bigger vector file (pdf) corresponding raster file (png). imagine because dataset plotted large , there millions of instructions in vector file. other being bigger, pdf quite hard pdf reader display. on some, takes few seconds load; on others, doesn't load @ all.

in pyplot, possible have bitmap plot vector axes, labels , other text?

my (very bad) solution @ moment generate pdf, generate png, open pdf inkscape , replace plot png one. manual , time consuming if realise have regenerate plot.

it should simple passing in rasterized=true plot command.

e.g.

import matplotlib.pyplot plt  plt.plot(range(10), rasterized=true) plt.savefig('test.pdf') 

for me, results in pdf rasterized line (the resolution controlled dpi specified savefig -- default, it's 100) , vector text.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -