MathGroup Archive 2006

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

Search the Archive

Re: Plot -> axes inversion


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