Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Saving figures from code

Subject: Saving figures from code

From: Chuck37

Date: 7 Jul, 2011 18:37:10

Message: 1 of 3

I'm trying to generate a bunch of figures in a batch mode and save them off as TIF without a person having to work the menus to save each one.

I found the "saveas" function and it kind of works except that the TIF images look totally different when saved with saveas as compared to when they are saved from the pull down menus. Specifically, the image from the pulldowns has the same aspect ratio and font size as the figure on the screen. The image from saveas has a different aspect ratio (more square) and the fonts are big (such that legends cover text, etc.).

Any help on this would be great, thanks.

Subject: Saving figures from code

From: Ben

Date: 7 Jul, 2011 21:19:13

Message: 2 of 3

"Chuck37" wrote in message <iv4ucm$fdu$1@newscl01ah.mathworks.com>...
> I'm trying to generate a bunch of figures in a batch mode and save them off as TIF without a person having to work the menus to save each one.
>
> I found the "saveas" function and it kind of works except that the TIF images look totally different when saved with saveas as compared to when they are saved from the pull down menus. Specifically, the image from the pulldowns has the same aspect ratio and font size as the figure on the screen. The image from saveas has a different aspect ratio (more square) and the fonts are big (such that legends cover text, etc.).
>
> Any help on this would be great, thanks.

See if this is helpful:
http://www.mathworks.com/support/solutions/en/data/1-15K54/index.html?product=SL&solution=1-15K54

Subject: Saving figures from code

From: ImageAnalyst

Date: 8 Jul, 2011 18:22:37

Message: 3 of 3

On Jul 7, 2:37 pm, "Chuck37 " <chuck3...@yahooremovethis.com> wrote:
> I'm trying to generate a bunch of figures in a batch mode and save them off as TIF without a person having to work the menus to save each one.
>
> I found the "saveas" function and it kind of works except that the TIF images look totally different when saved with saveas as compared to when they are saved from the pull down menus.  Specifically, the image from the pulldowns has the same aspect ratio and font size as the figure on the screen.  The image from saveas has a different aspect ratio (more square) and the fonts are big (such that legends cover text, etc.).
>
> Any help on this would be great, thanks.

---------------------
Chuck:
See the FAQ:
http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
and try export_fig.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us