How to export high quality plot in eps format ?

282 ビュー (過去 30 日間)
andrea 2020 年 6 月 23 日
回答済み: Jesús Gutiérrez 2020 年 6 月 24 日
I have a problem with the quality of some plots I'm saving in eps format to insert it in a .tex file, the command i use to save the plots is :
f = gcf ;
f.Renderer = 'painters'
ax.FontSize = 25 ;
ax.FontWeight = 'bold'
grid on
f.WindowState = 'maximized'
Then the eps image is imported into latex, but the the plots in the pdf produced are somehow distorted they only became better if i zoom in , I attached a pdf to show the problem. Maybe should I use another format ? or is the above command wrong ?
  2 件のコメント
darova 2020 年 6 月 24 日
try print


回答 (1 件)

Jesús Gutiérrez
Jesús Gutiérrez 2020 年 6 月 24 日
I use these lines to get high quality eps and import it to LaTex documents:
First line configures figure size, I use to adjust it to the line width of the report I am creating, in order to maintain fontsize when figure is imported. (You can leave xini and yini to zero)
Second line sets fontsize and font type (use listfonts to know each font code installed in your computer).
Third line finally creates a coloured .eps file.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by