RE: FrameTick Problem

• To: mathgroup at smc.vnet.net
• Subject: [mg35109] RE: [mg35092] FrameTick Problem
• From: "David Park" <djmp at earthlink.net>
• Date: Tue, 25 Jun 2002 03:40:28 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Steve,

The ticks at -2 and 2 don't show up because the plot range is only from -1
to 1! Increase the PlotRange and they will show. Also, it is an unpleasant
feature of Mathematica that it does not show a lower tick mark if it occurs
exactly at the lower end of the plot range. The PlotRange has to be
increased slightly.

Plot[Sin[x], {x, 0, 2  Pi}, Frame -> True,  FrameTicks -> {{0, Pi/2,
Pi, 3  Pi/2, 2  Pi}, {-2, 0, 2}},
PlotRange -> {-2.01, 2}];

David Park

>
>
> Can anyone help with this ?
>
>
> Plot[Sin[x], {x, 0, 2  Pi}, Frame -> True,  FrameTicks -> {{0, Pi/2,
> Pi, 3  Pi/2, 2  Pi}, {-1, 0, 1}}]
>
> So far, so good.
>
> Now what if you want to change the y axis FrameTicks so that they
> range from say -2 to 2 instead of -1 to 1. So one would believe that
> the FrameTicks option would  be changed accordingly but the command
> below does not accomplish this.
>
> Plot[Sin[x], {x, 0, 2  Pi}, Frame -> True,  FrameTicks -> {{0, Pi/2,
> Pi, 3  Pi/2, 2  Pi}, {-2, 0, 2}}]
>
> Can someone explain why this does not work and what would ?
>
> Thanks
>
> Steve
>
>

```

• Prev by Date: Re: PolynomialQ ?
• Next by Date: Re: FrameTick Problem
• Previous by thread: RE: FrameTick Problem
• Next by thread: Re: FrameTick Problem