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

前端 未结 4 1893
感情败类
感情败类 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 18:56

    This is exactly the kind of problem for which I wrote the function linked here: http://pages.uoregon.edu/noeckel/computernotes/Mathematica/listContourDensityPlot.html

    It's based on the same idea as in Heike's answer -- I just added some more features so that you can safely change the aspect ratio, opacity, and combine with other plots. See my comment in Heike's answer.

    To try it with your data, do something like this:

    plot = Show[
     listContourDensityPlot[data, 
      PlotRange -> {Automatic, Automatic, {0, 1}}, 
      InterpolationOrder -> 0, Contours -> None], 
     Graphics[Line[{{500, 500}, {700, 700}}]]]
    

    There are a couple of similar functions linked from the parent page, too.

提交回复
热议问题