MathGroup Archive 2006

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

Search the Archive

Re: Plot -> axes inversion

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64652] Re: Plot -> axes inversion
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 25 Feb 2006 02:53:12 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <dtm57k$hbo$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

bd satish wrote:
> Hi buddies ,
> 
>    I have a plot :
> 
> 
>                Plot[ 1/Gamma[x] , { x, -4 ,4 } ,AxesLabel - > { "x" , "y" }
> ]
> 
> 
>     I want to interchange  the  x-  and y-axes. (A kinda rotatation  by 90
> degrees ). Which option should I use ?
> 
>                 How about the plot inversion option for Plot3D[ . ] ?
> 
> 
Hi,

You could try replacement rules as in the following examples:

g = Plot[1/Gamma[x], {x, -4, 4}, AxesLabel -> {"x", "y"}];

In[2]:=
Show[g /. {x_, y_} :> {y, x}];

Below, we have a rotation on the left by Pi/2

In[3]:=
Show[g /. {x_, y_} :> {-y, x}];

Best regards,
/J.M.


  • Prev by Date: Sequence@@List
  • Next by Date: Re: 3D Graphics suggestions?
  • Previous by thread: Re: Plot -> axes inversion
  • Next by thread: Left Justification in a button