From: David on
I need help!!!
So the issue is how to nicely export my figures to eps, with the possibility to set the size, having the same FontSize for all plots and so on... I was using exportfig, but I have some problems:

-colors are not taken nicely
-Colorbar looks ugly
-Markesizes are changed...

Anybody has a good solution (please include sample code...)?
How do you export your plots??

Thanks a lot,

David
From: someone on
"David " <jaeckeld(a)bsse.ethz.ch> wrote in message <hrrudg$gj4$1(a)fred.mathworks.com>...
> I need help!!!
> So the issue is how to nicely export my figures to eps, with the possibility to set the size, having the same FontSize for all plots and so on... I was using exportfig, but I have some problems:
>
> -colors are not taken nicely
> -Colorbar looks ugly
> -Markesizes are changed...
>
> Anybody has a good solution (please include sample code...)?
> How do you export your plots??
>
> Thanks a lot,
>
> David

You might download & try export_fig from the MATLAB FEX at:

http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig

Look at Oliver's response to Dan (19 Apr 2009) in the Comments & Ratings section!
From: David on
> You might download & try export_fig from the MATLAB FEX at:
>
> http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
>
> Look at Oliver's response to Dan (19 Apr 2009) in the Comments & Ratings section!

Well actually some of the problems

- I want the same FontSize for all plots
- Lines should be scaledwith figure

are not solved by export_fig. Am I right?
From: Oliver Woodford on
"David" wrote:
> Well actually some of the problems
>
> - I want the same FontSize for all plots
> - Lines should be scaledwith figure
>
> are not solved by export_fig. Am I right?

Export_fig aims to reproduce the figure as it appears on screen. Couldn't you just set the line widths according to figure size before exporting? Alternatively you could try matlabfrag, or one of the many other tools that export to latex, on the FEX. They might solve your line width issue, though it's not totally clear what the issue is. As for font size, it should be correct in the exported eps.

Oliver
From: Pekka Kumpulainen on
"David " <jaeckeld(a)bsse.ethz.ch> wrote in message <hrs474$j53$1(a)fred.mathworks.com>...
> > You might download & try export_fig from the MATLAB FEX at:
> >
> > http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
> >
> > Look at Oliver's response to Dan (19 Apr 2009) in the Comments & Ratings section!
>
> Well actually some of the problems
>
> - I want the same FontSize for all plots
> - Lines should be scaledwith figure
>
> are not solved by export_fig. Am I right?

This is what I usually do
set(0,'DefaultTextFontsize',10)
set(0,'DefaultAxesFontsize',10)
% Now all the figures will have the same fontsize.
% set the desired size and print
set(gcf,'PaperUnits','centimeters','PaperPosition',[0 0 10 8]);
print('-depsc','foo')
% and then don't resize the picture in your word processor or publishing software to keep the fontsize right