Re: Plot backwards
- To: mathgroup at smc.vnet.net
- Subject: [mg40778] Re: [mg40764] Plot backwards
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Thu, 17 Apr 2003 03:34:35 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
OK, how about this. Compare these two plots:
g = Plot[x^3, {x, -10, 10}, Ticks -> {Table[{n, n}, {n, 0, 10}],
Automatic}];
with
g = Plot[x^3, {x, -10, 10}, DisplayFunction -> Identity,
Ticks -> {Table[{n, n}, {n, 0, 10}], Automatic}];
h = g /. {(x_)?NumberQ, (y_)?NumberQ} :> {-x, y};
Show[h, DisplayFunction -> $DisplayFunction]
Andrzej Kozlowski
Yokohama, Japan
http://www.mimuw.edu.pl/~akoz/
http://platon.c.u-tokyo.ac.jp/andrzej/
On Wednesday, April 16, 2003, at 08:21 pm, Gustavo Seabra wrote:
> Thank you for your reply. However, all this input does is to remove the
> negative sign from the labels. What I really want is to plot a "mirror
> image
> " of the regular plot, so that not only the labels but all the points
> come
> in reverse order.
>
> Thanks,
> Gustavo.
> ----- Original Message -----
> From: "Andrzej Kozlowski" <akoz at mimuw.edu.pl>
To: mathgroup at smc.vnet.net
> To: "Gustavo Seabra" <seabra at ksu.edu>
> Cc: <mathgroup at smc.vnet.net>
> Sent: Wednesday, April 16, 2003 1:08 AM
> Subject: [mg40778] Re: [mg40764] Plot backwards
>
>
>> It's not clear to me where exactly you want the y axis to be
>> positioned, presumably at x=0? Anyway, one method to get what you
>> want
>> is shown in this example:
>>
>> Plot[x^2, {x, -10, 0}, Ticks -> {Table[{n, -n}, {n, -10, 0, 1}],
>> Automatic}]
>>
>>
>> On Wednesday, April 16, 2003, at 02:38 pm, Gustavo Seabra wrote:
>>
>>> Hi,
>>>
>>> I am Using Mathematica 4.0 for Students. I'm trying to plot a
>>> function,
>>> but I need the x axis to decrease to the right, instead of
>>> increasing,
>>> like:
>>>
>>> -|----|----|----|----|
>>> 25 20 15 10 0
>>>
>>> I've looked everywhere I could think of. Would anyone hava
>>> suggestions?
>>>
>>> Thanks,
>>> Gustavo Seabra.
>>>
>>>
>>>
>>>
>>>
>> Andrzej Kozlowski
>> Yokohama, Japan
>> http://www.mimuw.edu.pl/~akoz/
>> http://platon.c.u-tokyo.ac.jp/andrzej/
>>
>
>
>