Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to control the default plot size?

1,669 views
Skip to first unread message

Joe Gwinn

unread,
Oct 7, 1998, 3:00:00 AM10/7/98
to
I am having an annoyance problem with Mathematica 3.0.1 for PowerPC
under MacOS 8.1:

When recomputing any kind of plot, such as ListPlot[],
ListDensityPlot[], etc, the plot size won't stay as set, instead often
reverting to 2 by 3 inches or so on the screen, at random. In some
cases, the size shrunk to 0.5 by 0.5 inches. There doesn't seem to be
any pattern to when a plot will stay the size it was set to (by
dragging the lower right corner), and when it will revert to the
default small size.

I assume that there is a Front End default one can set, and I have seen
it mentioned in the Holy Tome, but I have been unable to actually find
it. Any suggestions?


Joe Gwinn


Ersek, Ted R

unread,
Oct 8, 1998, 3:00:00 AM10/8/98
to

Joe Gwinn wrote:
______________________

When recomputing any kind of plot, such as ListPlot[],
ListDensityPlot[], etc, the plot size won't stay as set, instead often
reverting to 2 by 3 inches or so on the screen, at random. In some
cases, the size shrunk to 0.5 by 0.5 inches. There doesn't seem to be
any pattern to when a plot will stay the size it was set to (by
dragging the lower right corner), and when it will revert to the
default small size.

________________________

Lets look at the Options Plot has.

In[1]:=
First/@Options[Plot]

Out[1]=
{AspectRatio,Axes,AxesLabel,AxesOrigin,AxesStyle,Background,ColorOutput,Comp
iled,DefaultColor,Epilog,Frame,FrameLabel,FrameStyle,FrameTicks,GridLines,Im
ageSize,MaxBend,PlotDivision,PlotLabel,PlotPoints,PlotRange,PlotRegion,PlotS
tyle,Prolog,RotateLabel,Ticks,DefaultFont,DisplayFunction,FormatType,TextSty
le}


The option you want is ImageSize. Suppose you want Plot to make a
graphic with a width of 425 (I think the units are printer points) and
height determined by the specified aspect ratio. The line below will
make that the default.

In[14]:=
SetOptions[Plot,ImageSize->{425,Automatic} ];


Cheers,
Ted Ersek


Peter Buttgereit

unread,
Oct 12, 1998, 3:00:00 AM10/12/98
to
[This followup was posted to comp.soft-sys.math.mathematica and a copy
was sent to the cited author.]

Hi Joe,
did you try to set

Options[#,ImageSize->{450,450/GoldenRatio}]&/@{Graphics,ListPlot,Plot}

or something like that?
Cheers,
Peter

In article <6vf3gi$d...@smc.vnet.net>, gw...@ma.ultranet.com says...


> I am having an annoyance problem with Mathematica 3.0.1 for PowerPC
> under MacOS 8.1:
>

> When recomputing any kind of plot, such as ListPlot[],
> ListDensityPlot[], etc, the plot size won't stay as set, instead often
> reverting to 2 by 3 inches or so on the screen, at random. In some
> cases, the size shrunk to 0.5 by 0.5 inches. There doesn't seem to be
> any pattern to when a plot will stay the size it was set to (by
> dragging the lower right corner), and when it will revert to the
> default small size.
>

Allan Hayes

unread,
Oct 12, 1998, 3:00:00 AM10/12/98
to
Joe,
Image size can be set from the Option Inspector either at Notebook or
Global level by using the option ImageSize

----------------------
Alllan Hayes
Mathematica Training and Consulting
www.haystack.demon.co.uk
h...@haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


Joe Gwinn wrote in message <6vf3gi$d...@smc.vnet.net>...

0 new messages