Re: reverse an axis

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

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 xah at best.com; 74631.731 at compuserve.com http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html Mountain View, CA, USA ==== [MESSAGE SEPARATOR] ====