MathGroup Archive 1996

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

Search the Archive

Re: reverse an axis

  • To: mathgroup at
  • Subject: [mg4482] Re: reverse an axis
  • From: Xah Lee <xah at>
  • Date: Mon, 29 Jul 1996 02:37:32 -0400
  • Organization: Best Internet Communications
  • Sender: owner-wri-mathgroup at

DR JOHN C ERB wrote:
> Is it possible to reverse an axis.  I am doing some work with
> ListContourPlot
> and I would like for my x-axis to display from say 14 to -5 (from
> left
> to right across the screen), while the y-axis goes from say 2 to 9.
> I have tried calculating my data matrix "backwards" in the x-
> direction,
> and using MeshRange->{{14,-5},{2,9}}; this does not work (the data is
> now
> "backwards" but the x-axis still displays from -5 to 14).

FullGraphics[Graphics@ yourContourGraphics] will return a list of 2D graphics primitives 
that includes ticks marks by Text. Then you can manipulate that using Rule and Replace. It 
is probably better just adding your own tickmarks using Text.

Or, how about copy and paste your normal contour plot into a graphics program, then flip 
it there. You might do this is Mathematica too by converting the graphics into a bitmap 
GraphicsArray... well, you work out the details. (may not be possible)

 xah at; 74631.731 at
 Mountain View, CA, USA


  • Prev by Date: Re: Re: running on IBM RS6000 Model 43P
  • Next by Date: Re: Help with ParametricPlot3D in color
  • Previous by thread: reverse an axis
  • Next by thread: Re: Loading packages w/o write access