How to decrease file size of exported plots while keeping labels sharp

前端 未结 4 1943
感情败类
感情败类 2021-02-05 18:52

When exporting rather complicated plots (especially ListDensityPlot) as a PDF or EPS (for publication, for example), the resulting file size can be quite large. For

4条回答
  •  無奈伤痛
    2021-02-05 19:11

    How about just plotting the function rather than making a list?

    plot=DensityPlot[Exp[-(f - f0)^2/25^2], {f0, 500, 700}, {f, 300, 900}, 
     Epilog -> {Thick, Line[{{500, 500}, {700, 700}}]}, PlotPoints -> 50]
    
    Export["test.pdf", plot]
    

    file size 1.1MB

提交回复
热议问题