Re: Framing a Graph

• To: mathgroup at smc.vnet.net
• Subject: [mg112799] Re: Framing a Graph
• From: István Zachar <zac at freemail.hu>
• Date: Fri, 1 Oct 2010 05:40:19 -0400 (EDT)
• References: <i81j26\$9pt\$1@smc.vnet.net>

```Use PlotRangePadding.

Plot[x^2, {x, 0, 8}, Frame -> True, GridLines -> Automatic, AxesOrigin
-> {0, 0}, PlotRangePadding -> 0]

Istvan

On Sep 30, 10:51 am, Gregory Lypny <gregory.ly... at videotron.ca> wrote:
> Hello everyone,
>
> I need help in tweaking the appearance of a graph.  I'd like axes shown=
on all four sides of a 2D plot.  This can be done by including a frame a=
s in the following.
>
>         Plot[x^2, {x, 0, 8},
>                  Frame -> True,
>                  GridLines -> Automatic,
>                 AxesOrigin -> {0, 0}]
>
> The problem with this approach for my particular purpose, however, is tha=
t the origin of the graph and the lower-left corner of the frame are not co=
incident.  The origin (0, 0) is set in and appears at the first tick on t=
he horizontal and vertical axis.  Likewise, the outermost point, (8, 64) =
in my example here, is not coincident with the top-right corner of the fram=
e.  Is there any way that I can get a frame to lie on top of the axes? =

>
> Much appreciated,
>
> Gregory

```

• Prev by Date: Re: Framing a Graph
• Next by Date: Re: Framing a Graph
• Previous by thread: Re: Framing a Graph
• Next by thread: Re: Framing a Graph