MathGroup Archive 2009

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

Search the Archive

Re: How to plot with a reversed Y-axis?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103510] Re: [mg103504] How to plot with a reversed Y-axis?
  • From: "David Park" <djmpark at comcast.net>
  • Date: Fri, 25 Sep 2009 07:52:18 -0400 (EDT)
  • References: <2418689.1253873415625.JavaMail.root@n11>

Needs["Presentations`Master`"]

yticks = CustomTicks[-# + 50 &, {0, 50, 10, 5}];
Draw2D[
 {ListLineDraw[Table[{i, i^2}, {i, {1, 2, 3, 4, 5, 6}}]] /. 
   DrawingTransform[#1 &, -#2 + 50 &]},
 AspectRatio -> 0.63,
 Frame -> True,
 FrameTicks -> {{yticks, yticks // NoTickLabels}, {Automatic, 
    Automatic}},
 PlotRange -> {{0, 8}, {0, 50}},
 PlotRangePadding -> {0.1, 1},
 PlotLabel -> "Reverse y Axis Plot"]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  



From: Mather [mailto:sdzbbjhd at hotmail.com] 

Hi,guys
I want to plot with a reversed Y-axis, that is to say, along the Y-
axis direction the numbers become smaller.
For example:

ListLinePlot[Table[{i, i^2}, {i, {1, 2, 3, 4, 5, 6}}],
 PlotRange -> {{0, 8}, {50, 0}}]

However it does not work.
Can anybody help with this?

Thanks in advance!




  • Prev by Date: ImageSize->Full does not work as expected
  • Next by Date: Monitoring status of dynamic calculation
  • Previous by thread: How to plot with a reversed Y-axis?
  • Next by thread: Re: How to plot with a reversed Y-axis?