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: [mg4292] y-axis direction
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Xah Lee

Posts: 171
Registered: 12/4/04
Re: [mg4292] y-axis direction
Posted: Jul 8, 1996 1:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

At 3:55 AM 96/6/29, Yuk Chai wrote:
> In ListPlot[....], how can one have the positive y-axis plotted
>downwards instead of the conventional upwards direction i.e.

Easily done by replacing your y-coordinates with opposite sign before
feeding the list to ListPlot. You do that by

ListPlot [ N[myList] /. {x_?AtomQ,y_?AtomQ} -> {x,-y} ]

If your list is one-dimentional, then just do

ListPlot[ -myList ]

Mountain View, CA, USA

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.