make high-quality, publication-level figures in matlab
April 22nd, 2007 by Lawrence David
i had always been irked by how easy it was to make figures in matlab, but how crummy they looked when saved. i felt slightly embarrassed handing in such ugly figures for my homework; a journal editor would be seized with anaphylactic shock if i tried submitting matlab figures.
i’ve finally stumbled upon the solution, however: the eps level-2 file format. try saving your figures like such:
saveas(gcf,’my_figure.eps’,'epsc2′);
prepare to be amazed. figures fonts no longer make you want to put out your own eyes; diagonal lines show no evidence of pixelation, even when you’re zoomed in.
Indeed saving it as a vector format will do the trick, but if a Matlab figure contains too many items it “magically” transforms into a bitmap again.
Be aware.
Pls, how can i insert a figure in MATLAB. That is inserting a graph into another
Also, here is a matlab script that lets you put latexed text into your figures, creates an eps, and then it all compiles together when you latex your document. Worked great for me.
http://www.mathworks.de/matlabcentral/fileexchange/4638
print -depsc filename.eps does the same thing…
I found myself browsing though your tricks again…recalling that my latest MATLAB plot looked awful, I tried the saveas
function, then remembered the one I used to use…
cheers