matplotlib: generating vector plot

前端 未结 4 491
一整个雨季
一整个雨季 2021-02-05 10:37

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\')
         


        
4条回答
  •  臣服心动
    2021-02-05 10:49

    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.

提交回复
热议问题