Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



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 xaxis or 2D data. My solution involved two steps.
1. Make the xcomponent of each pair of x,ycoordinates to be negative of its actual value. If the list is short, simply change the sign of each xcomponent. 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 xaxis. This is not a very automated solution but it gives the appropriate graphs very nicely.  Dr. Richard L. Bowman Dept. of Physics email: rbowman@bridgewater.edu Bridgewater College phone: 5408285441 Bridgewater, VA 22812 FAX: 5408285479 "http://www.bridgewater.edu/departments/physics/physics.html" 



