MathGroup Archive 1999

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

Search the Archive

Re: How invert x-axis in a plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17716] Re: How invert x-axis in a plot?
  • From: phbrf at t-online.de (Peter Breitfeld)
  • Date: Sun, 23 May 1999 02:25:30 -0400
  • Organization: das ist ein breites Feld ...
  • References: <7i35ck$bfl@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Helmuth Kristen <hkristen at cfa.harvard.edu> schrieb:
> Hi there,
> 
> I wonder how to invert the x-axis in a Mathematica plot. Inverting the
> PlotRange of the axis from e.g.{-100,100} to {100,-100} does not help.
>    The reason I want to invert the axis is that the ordinate of
> celestial coordinates,
> the so-called "rectascension", increases from right to left.
 
Helmuth,

I think you have to do it manually. To plot eg. f[x_]=x^3+x-4 the way
you want, you could try:

Plot[f[-x],{x,-4,4},PlotRange{-10,10},
  Ticks->{Table[{i,-i},{i,-4,4}],Automatic}];

Have a look how to create Tick-Mark-functions in Section 2.9.5 of the
Mathematica Book. 
 
Es gruesst  Peter
-- 
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
  Peter Breitfeld, Saulgau, Germany        PGP public key:  08548045


  • Prev by Date: Re: MASH: Mathematica Scripting Hack
  • Next by Date: Re: Algebraic substitutions. HOW?
  • Previous by thread: Re: How invert x-axis in a plot?
  • Next by thread: Kernel Execute of Menu Commands