Re: FrameTick Problem
- To: mathgroup at smc.vnet.net
- Subject: [mg35102] Re: [mg35092] FrameTick Problem
- From: BobHanlon at aol.com
- Date: Tue, 25 Jun 2002 03:39:45 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 6/24/02 4:29:37 AM, qualsystems*nospam* at mindspring.com
writes:
>Can anyone help with this ?
>
>Here is the FrameTick example from the online help.
>
>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 ?
Your y-axis does not include the points where the labels would be.
Extended the PlotRange to see them.
Plot[Sin[x],{x,0,2 Pi},Frame->True,
FrameTicks->{{0,Pi/2,Pi,3 Pi/2,2 Pi},{-2,0,2}},
PlotRange->{-2.1,2.1}];
Bob Hanlon
Chantilly, VA USA