Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: feature request: invert plot axes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62074] Re: feature request: invert plot axes
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Thu, 10 Nov 2005 02:52:02 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 11/9/05 at 5:05 AM, marcus314 at yahoo.com (Marcus Stollsteimer)
wrote:

>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?

Whether you regard your comments above as being correct or not depends on how you define "simple way" and "workarounds".

I assume it doesn't matter to you how Mathematica creates the plot but only that the values along the x-axis are reversed from their normal order. If so,

In[95]:=
Plot[x, {x, -1, 1}, 
   Ticks ->{{#, -#}&/@Range[-1, 1, 0.5], Automatic}];

does the trick.
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: To be or not to be...
  • Next by Date: Re: Write, Put,..
  • Previous by thread: Re: FileNames[] in a loop..
  • Next by thread: Re: feature request: invert plot axes