MathGroup Archive 1996

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

Search the Archive

Re: reverse an axis

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4497] Re: [mg4437] reverse an axis
  • From: "Richard L. Bowman" <rbowman at bridgewater.edu>
  • Date: Fri, 2 Aug 1996 02:22:28 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

I have also recently wished to plot one axis of my data from largest on
the left to smallest on the right on the x-axis or 2-D data.  My solution
involved two steps.

1.  Make the x-component of each pair of x,y-coordinates to be negative of
its actual value.  If the list is short, simply change the sign of each
x-component.  If it is longer, do it via operations on the list of data
points.

2.  When issuing the Plot (as I did since I was using interpolation) 
command or ListPlot command use the following option:

  FrameTicks -> {{{-70,"70"},{-75,"75"},{-80,"80"},{-85,"85"},{-90,"90"}},
    Automatic},

where my original data ran from 70 to 90 along the x-axis.  This is not a
very automated solution but it gives the appropriate graphs very nicely.
-------------------------------------------------------------------------
Dr. Richard L. Bowman
Dept. of Physics                         e-mail:  rbowman at bridgewater.edu
Bridgewater College                                  phone:  540-828-5441
Bridgewater, VA  22812                                 FAX:  540-828-5479
  "http://www.bridgewater.edu/departments/physics/physics.html";
-------------------------------------------------------------------------



==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Horner scheme function ?
  • Next by Date: plotting NIntegrate
  • Previous by thread: Re: Horner scheme function ?
  • Next by thread: Re: reverse an axis