In the writing of thesis, we often encounter situations in which the format of the exported pictures does not meet the requirements. It can be said that it is a lot of hard work to adjust and obtain satisfactory pictures.
I accidentally saw a toolkit on the Internet today that matlab adjusts the format of exported pictures: export_fig.
https://github.com/altmany/export_fig
The effect is so good, who knows who uses it! !
In addition, to export pictures in eps format and pdf format, you need to install a plug-in, you can refer to the following method.
http://bbs.06climate.com/forum.php?mod=viewthread&tid=59444。
If you want to use export_fig to export eps and pdf in Matlab under Win, you need to install the plug-in, pdftops.
For 64 systems, select win64.
( Xpdf-tools ) Download address:
http://www.xpdfreader.com/download.html
Now the preparations have been completed, we need to let export_fig know the path of the bin folder of Xpdf-tools.
First draw a picture:
x = [-10:0.1:10];
y = sin(x);
plot(x,y);
Draw a picture like this,
export_fig( gcf,'-pdf','-r300 ','-painters','./Test.pdf');
Then Matlab will pop up a dialog box, as shown in the figure, select locate pdftops in the middle, and then select the bin64 folder of Xpdf-tool, and click OK. can. Thus we find Test.pdf file has been generated, the same can then test the installation eps:
export_fig (GCF, '-EPS', '-r300', '-painters', './Test.pdf');
thus Completed the complete installation of the export_fig plugin of Matlab under WIn.