matlab export plot to vector format

前端 未结 7 708
感情败类
感情败类 2021-01-04 13:21

All the time previously I was exporting Matlab figures in a raster format (JPG, PNG)

Is there a way to export a plot from Matlab in a vector format (SVG). I need it

相关标签:
7条回答
  • 2021-01-04 14:03

    There is also matlab2tikz and matlabfrag which exports to eps with annotation for importing to LaTeX.

    Here is an example of mine where I've used matlabfrag.

    I've also discussed this with a Mathworks engineer, who agreed that there is not a nice-and-ready tool for this kind of thing, because everybody wants to do different things with it (I already mention two different LaTeX approaches). So imo the best thing to do is to play around with different tools and see which suits you best.

    Most of the times I had to tinker a lot with the axes, font size of labels, etc to get it exactly how I wanted (btw adjusting a legend is the greatest hell).

    0 讨论(0)
提交回复
热议问题