Discussion:
Changing default meaning of ImageSize -> Automatic
(too old to reply)
l***@gmail.com
2009-01-04 12:32:47 UTC
Permalink
Hello,
I like the default behavior of the option ImageSize -> Automatic in
Graphics[] that results in automatic resizing of graphics according to
the option ImageSizeMultipliers. But the default size of any graphics
produced with this option is too small (360 pixels width) for me and I
am coerced to resize it by hand any time it is produced for making it
visible in detail. Is there a way to change this behavior and to force
Graphics[] with the option ImageSize -> Automatic produce an image
with (for example) 500 pixels width?

In[1]:= Plot[Sin[x], {x, 0, 6 Pi}] // ImageDimensions

Out[1]= {360, 213}
Sjoerd C. de Vries
2009-01-05 08:26:35 UTC
Permalink
With the Option Inspector in the Format menu you can change this
option setting

The ImageSize default is in Graphics Options/Image Bounding Box.

Make sure you to have "Global Preferences" in the inspector's drop
down menu at the top if you want this as your system wide default.

Cheers -- Sjoerd
Post by l***@gmail.com
Hello,
I like the default behavior of the option ImageSize -> Automatic in
Graphics[] that results in automatic resizing of graphics according to
the option ImageSizeMultipliers. But the default size of any graphics
produced with this option is too small (360 pixels width) for me and I
am coerced to resize it by hand any time it is produced for making it
visible in detail. Is there a way to change this behavior and to force
Graphics[] with the option ImageSize -> Automatic produce an image
with (for example) 500 pixels width?
In[1]:= Plot[Sin[x], {x, 0, 6 Pi}] // ImageDimensions
Out[1]= {360, 213}
l***@gmail.com
2009-01-07 09:15:23 UTC
Permalink
Post by Sjoerd C. de Vries
With the Option Inspector in the Format menu you can change this
option setting
The ImageSize default is in Graphics Options/Image Bounding Box.
Make sure you to have "Global Preferences" in the inspector's drop
down menu at the top if you want this as your system wide default.
Cheers -- Sjoerd
I have found that this works correctly in Mathematica 5.2. But in
Mathematica 7 changing this option has no effect at all.
Thus my question remains in force: how to force Graphics[] with the
option ImageSize -> Automatic produce an image
with (for example) 500 pixels width? The advantage of using the
"Automatic" value of this option is automatic resizing Graphics
depending on context and according to the option ImageSizeMultipliers.
Jens-Peer Kuska
2009-01-05 08:29:36 UTC
Permalink
Hi,

try

SetOptions[Plot, ImageSize -> 1000]

In[5]:= Plot[Sin[x], {x, 0, 6 Pi}] // ImageDimensions

Out[5]= {1000, 617}

Regards
Jens
Post by l***@gmail.com
Hello,
I like the default behavior of the option ImageSize -> Automatic in
Graphics[] that results in automatic resizing of graphics according to
the option ImageSizeMultipliers. But the default size of any graphics
produced with this option is too small (360 pixels width) for me and I
am coerced to resize it by hand any time it is produced for making it
visible in detail. Is there a way to change this behavior and to force
Graphics[] with the option ImageSize -> Automatic produce an image
with (for example) 500 pixels width?
In[1]:= Plot[Sin[x], {x, 0, 6 Pi}] // ImageDimensions
Out[1]= {360, 213}
Scot T. Martin
2009-01-05 08:29:57 UTC
Permalink
Are you looking for SetOptions[Plot,ImageSize-> xx] ?
Post by l***@gmail.com
Hello,
I like the default behavior of the option ImageSize -> Automatic in
Graphics[] that results in automatic resizing of graphics according to
the option ImageSizeMultipliers. But the default size of any graphics
produced with this option is too small (360 pixels width) for me and I
am coerced to resize it by hand any time it is produced for making it
visible in detail. Is there a way to change this behavior and to force
Graphics[] with the option ImageSize -> Automatic produce an image
with (for example) 500 pixels width?
In[1]:= Plot[Sin[x], {x, 0, 6 Pi}] // ImageDimensions
Out[1]= {360, 213}
l***@gmail.com
2009-01-07 09:15:57 UTC
Permalink
Post by l***@gmail.com
Hello,
I like the default behavior of the option ImageSize -> Automatic in
Graphics[] that results in automatic resizing of graphics according to
the option ImageSizeMultipliers. But the default size of any graphics
produced with this option is too small (360 pixels width) for me and I
am coerced to resize it by hand any time it is produced for making it
visible in detail. Is there a way to change this behavior and to force
Graphics[] with the option ImageSize -> Automatic produce an image
with (for example) 500 pixels width?
In[1]:= Plot[Sin[x], {x, 0, 6 Pi}] // ImageDimensions
Out[1]= {360, 213}
I have found some partial solution for my problem. It is undocumented
option ImageSizeRaw located in Formatting Options | Expression
Formatting | Graphics Box Options in the Options Inspector. Setting
this option to 500 makes default size of generated Graphics to be 500
pixels on screen but ImageDimensions still returns size 360. This
option does not allow to set the default size to be more than 698. I
do not understand the reason for this as I still do not know how to
make this size to be "trueful" (I mean such functions as
ImageDimensions and ImageCrop to return 500 pixels wide image but not
360 as this happens now even with the option I have found).

Loading...