Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: y-axis direction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4360] Re: [mg4292] y-axis direction
  • From: xah at best.com (Xah Lee)
  • Date: Mon, 15 Jul 1996 04:50:59 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

At 3:55 AM 96/6/29, Yuk Chai wrote:
>Question:
>
>      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 ]

 Xah
 xah at best.com; 74631.731 at compuserve.com
 http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html
 Mountain View, CA, USA



==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Running Math2.2.3 on WIN 95 and WFW3.11 Clients in a Network
  • Next by Date: Re: c code generation
  • Previous by thread: Re: Running Math2.2.3 on WIN 95 and WFW3.11 Clients in a Network
  • Next by thread: Re: Error Bars in ListPlot