MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Re: image border

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72316] RE: [mg72277] Re: image border
  • From: "David Park" <djmp at earthlink.net>
  • Date: Tue, 26 Dec 2006 05:22:27 -0500 (EST)

If you plot...

p1 = Show[Graphics[{Circle[{0, 0}, 1]}]];

and then use

AbsoluteOptions[p1, PlotRange]
{PlotRange -> {{-1.05, 1.05}, {-1.05, 1.05}}}

you see that the PlotRange is not just the extent of the graphic primitives.
Mathematica has its internal algorithm to determine PlotRange unless you
specify it explicitly. It generally uses a slightly wider extent, and it
there are many items in the plot with 'outliers' then it often picks 'the
most interesting part'.

So if the selected PlotRange is not what you want, then specify it
explicitly.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Eep² [mailto:eepNOSPAM at tnlc.com]


Well, this happens with any graphics. The dotted line around the selected
image (with resize blocks around it), as in the attached
image, is not flush with the image extents, but has space around the plotted
points/lines. This code produces the attached image:


Show[Graphics[{Circle[{0, 0}, 1];

I want to make the selection line flush with the plotrange extents.

"David Park" <djmp at earthlink.net> wrote in message
news:em0ijl$cgn$1 at smc.vnet.net...
> It is always better if you can post your actual code. Then responders can
> see precisely what is happening and can often quickly find a solution. It
> may take a lot of work for responders to make up a case and then it might
> not actually reflect the conditions you have.
>
> You can copy the code into a posting by converting the cells to InputForm
> and then selecting and pasting the cell contents. I think it is usually
> better to select and copy each cell's contents and not the entire cell
(with
> the In and Out parts) because then it is easy to copy and paste into a
> notebook.
>
> From: Eep² [mailto:eepNOSPAM at tnlc.com]
>
> How do I get rid of the 11-pixel border around an image? I tried adjusting
> Graphics Options > Image Bounding Box > ImageMargins to
> "Automatic" and even -11 but that doesn't seem to have any effect. I want
> the bounding box to be flush with the image extents (full
> plotrange--whatever).





  • Prev by Date: Re: decrementing problem
  • Next by Date: Re: ReplaceAll applied to List
  • Previous by thread: Re: image border
  • Next by thread: Combinatorica parameters