MathGroup Archive 2001

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

Search the Archive

Re: Switching x and y axes in 2D plots


In a message dated 2001/10/19 4:31:09 AM, d9bertil at dtek.chalmers.se writes:

>  Is there an easy way of switching the x and y axes in 2D plots?
>
>  I'm asking because I'm trying to print out an maneuvering envelope
>plot, and they traditionally have altitude (independent variable) on
>the *vertical* axis and velocity (dependent) on the horizontal axis.
>

Show[
    Plot[x^2, {x, -3, 3}, 
        DisplayFunction -> Identity] /. 
      {x_?NumericQ, y_?NumericQ} -> {y, x}, 
    AspectRatio -> 1, 
    DisplayFunction -> $DisplayFunction];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: FractionalPart
  • Next by Date: How to simplify this routine which is able to export data into TXT file?
  • Previous by thread: Switching x and y axes in 2D plots
  • Next by thread: Re: Switching x and y axes in 2D plots