Re: feature request: invert plot axes
- To: mathgroup at smc.vnet.net
- Subject: [mg62064] Re: [mg62035] feature request: invert plot axes
- From: "David Park" <djmp at earthlink.net>
- Date: Thu, 10 Nov 2005 02:51:09 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Marcus,
One way to do it is with DrawGraphics.
Needs["DrawGraphics`DrawingMaster`"]
Draw2D[
{Draw[x^3, {x, -1, 1}] /. DrawingTransform[-#1 &, #2 &]},
Frame -> True,
FrameTicks -> {CustomTicks[-#1 & , {-1, 1, 0.5, 5}], Automatic, None,
None},
PlotRange -> All,
ImageSize -> 400];
DrawingTransform is used to reverse the plot, and CustomTicks is used to
reverse the tick labeling of the x axis.
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: Marcus Stollsteimer [mailto:marcus314 at yahoo.com]
To: mathgroup at smc.vnet.net
Hi group,
it seems that it is not possible to invert the x axis
of a plot in a simple way, so that the function is plotted
from e.g. 1 to -1 (PlotRange->{1,-1} does not work).
Only lots of workarounds.
Am I right?
Regards,
Marcus
--
Am I my brother's keeper? Yes. Interestingly, in my case I share
that honor with the Prospect Park Zoo. -- W. Allen