Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

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

Advanced Search

Back to Topic List Back to Topic List  
Richard L. Bowman

Posts: 8
Registered: 12/7/04
Re: [mg4437] reverse an axis
Posted: Jul 24, 1996 7:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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









Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.