Re: reversing axes orientation
- To: mathgroup at smc.vnet.net
- Subject: [mg97366] Re: reversing axes orientation
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Thu, 12 Mar 2009 02:15:46 -0500 (EST)
- References: <gp803s$1k2$1@smc.vnet.net>
Hi J=F6rg,
No simple setting like AxisDirections or so that I know of. You can
fake it using Ticks. Example:
f[x_] := x^3 + 1
start = -1;
end = 2;
tickDistance = 0.5;
Plot[
f[Rescale[x, {start, end}, {end, start}]],
{x, start, end},
Ticks -> {
Table[{x, Rescale[x, {start, end}, {end, start}]}, {x, start, end,
tickDistance}
]
}
]
Cheers -- Sjoerd
On Mar 11, 11:26 am, Joerg <scha... at biologie.hu-berlin.de> wrote:
> Hi,
>
> is there a simple way to reverse the orientation
> of the axes of a plot, e.g. in Plot[x, {x, 1, 0}]
> really plot from 1 to 0 (from left to right)?
>
> Thanks,
>
> joerg