From: Joseph on
I am using MATLAB 7.8.0.347 (R2009a) 32-bit maci. When I change the colorbar font size by either commanding set(colorbar,'fontsize',14) or using the figure GUI to make the adjustment, and then save the figure as a png, or other image file format, the font size adjustment returns to the default, and my font size adjustment does NOT appear in the saved image file (png). This also is the case, when I toggle the colorbar GUI button after I have changed the font size (the font size returns to default).

Anyone else experience this before? How can I get around this?

Thanks in advance.

Joe
From: Oliver Woodford on
"Joseph " wrote:
> I am using MATLAB 7.8.0.347 (R2009a) 32-bit maci. When I change the colorbar font size by either commanding set(colorbar,'fontsize',14) or using the figure GUI to make the adjustment, and then save the figure as a png, or other image file format, the font size adjustment returns to the default, and my font size adjustment does NOT appear in the saved image file (png). This also is the case, when I toggle the colorbar GUI button after I have changed the font size (the font size returns to default).
>
> Anyone else experience this before? How can I get around this?
>
> Thanks in advance.
>
> Joe

On my system this happens when I use the "Save as..." menu option, but not when I use the function print. However, using print can be unintuitive and generate unexpected results (e.g. figure size and colour). A good interface to the functionality of print, that will generally do what you want/expect, can be found in export_fig (http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig).

HTH,
Oliver