The Math Forum

Search All of the Math Forum:

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

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

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

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

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

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:
Bridgewater College phone: 540-828-5441
Bridgewater, VA 22812 FAX: 540-828-5479

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.