Thread Subject: exporting figures problem

Subject: exporting figures problem

From: Ian

Date: 29 Jan, 2008 12:02:01

Message: 1 of 2

Hi all,

I want to export figures from the command line with similar
results as would be gained from using the export figure GUI.

Options I wish to set are:
300dpi
size 12 font for all text
demi weight
italic
fixed linewidth of 2

exported as a tiff

I'm using the print function but it keeps messing up the
widths and fonts. Help appriciated.

Thanks
Ian

Subject: exporting figures problem

From: us

Date: 29 Jan, 2008 12:13:01

Message: 2 of 2

"Ian "
<SNIP a stylish lady/gentleman...

> I want to export figures from the command line with
similar results as would be gained from using the export
figure GUI...

one of the solutions

% assume your style sheet's name is <foo.txt>


% create a fig
     plot(1:10);
     fnam='your_fig.png'; % your file name
% the engine
% ...get style sheet info
     snam='foo'; % note: NO extension...
     s=hgexport('readstyle',snam);
% ...apply style sheet info
     hgexport(gcf,fnam,s);

us

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
style sheet us 29 Jan, 2008 07:15:07
hgexport us 29 Jan, 2008 07:15:07
print us 29 Jan, 2008 07:15:07
code us 29 Jan, 2008 07:15:07
command line Ian 29 Jan, 2008 07:04:56
tiff Ian 29 Jan, 2008 07:04:56
export Ian 29 Jan, 2008 07:04:56
rssFeed for this Thread

Contact us at files@mathworks.com