Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg4437] reverse an axis
Replies: 0

 Richard L. Bowman Posts: 8 Registered: 12/7/04
Re: [mg4437] reverse an axis
Posted: Jul 24, 1996 7:14 PM

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@bridgewater.edu
Bridgewater College phone: 540-828-5441
Bridgewater, VA 22812 FAX: 540-828-5479
"http://www.bridgewater.edu/departments/physics/physics.html"
-------------------------------------------------------------------------