MathGroup Archive 2001

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

Search the Archive

Re: Switching x and y axes in 2D plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31228] Re: [mg31223] Switching x and y axes in 2D plots
  • From: BobHanlon at aol.com
  • Date: Sat, 20 Oct 2001 04:27:01 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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