Thread Subject: Print Preview StyleSheet

Subject: Print Preview StyleSheet

From: Henrik

Date: 8 Apr, 2008 15:44:58

Message: 1 of 2

How do I change the settings in the default styleSheet for
figures. I like to always have it Landscape and Fill Page.
But every time you restart Matlab it's back to the usual
Portrait. setting.
So what I like to do is set the layout as I want and then
save it as the default stylesheet. It looks like I can only
save it as a new stylesheet...
Glad for any help on this
Cheers
Henrik

Subject: Print Preview StyleSheet

From: steven pav

Date: 21 Nov, 2008 17:13:01

Message: 2 of 2

"Henrik " <henrikNOSPAM@lanl.gov> wrote in message <ftg3tq$fae$1@fred.mathworks.com>...
> How do I change the settings in the default styleSheet for
> figures. I like to always have it Landscape and Fill Page.
> But every time you restart Matlab it's back to the usual
> Portrait. setting.
> So what I like to do is set the layout as I want and then
> save it as the default stylesheet. It looks like I can only
> save it as a new stylesheet...
> Glad for any help on this
> Cheers
> Henrik

for others having terrible problems with the 'print' command printing fonts at weird sizes. (hint to mathworks: just print them like they appear in the plot window, thanks), one can use the following programmatic hack:

%assuming fignum is the figure number
template = getprinttemplate(fignum);
template.FontSize = 66;
template.FontSizeType = 'scale';
setprinttemplate(fignum,template);
print(fignum,'-dpng',filename);

I am not sure how to reset the default template, but one might want to poke around in the matlab toolbox functions for things which call getprinttemplate or setprinttemplate. there may be a way to do this in startup without too much hassle.

hth,

--sep

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
stylesheet Henrik 8 Apr, 2008 11:45:15
print preview Henrik 8 Apr, 2008 11:45:15
rssFeed for this Thread

Contact us at files@mathworks.com