Re: help - how to invert the x or y axis..
- To: mathgroup at smc.vnet.net
- Subject: [mg17361] Re: [mg17315] help - how to invert the x or y axis..
- From: BobHanlon at aol.com
- Date: Mon, 3 May 1999 01:45:59 -0400
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 5/1/99 4:44:25 AM, jao at chara.gsu.edu writes:
>Does anyone know how to invert the x or y axis?
>I want the y-axis to increase downward, instead of upward.
>According to the "MathSource" said that we can use "MongoArray" package
>to adjust the direstion of each axis.
>HOWEVER, this package can only handel multiple graphics. Forthermore,
>the output size is very small. (I think it is designed for "shared" axes,
>not for single plot.)
>THEREFORE, does Mathematica can plot a graphic with inverted axis?
>
Sean,
Plot[x^2,{x,1,5}];
To reverse the axis, plot the negative of the function and label the axis
with its negative.
Plot[-x^2,{x,1,5},
Ticks->{Automatic,Join[Table[{-k, ""}, {k, 25}],
Table[{-k, k}, {k, 5, 25, 5}]]}];
Bob Hanlon