MathGroup Archive 2001

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

Search the Archive

Re: is there a way to swap the axes in a Plot?


Hi,

gg = Plot[Sin[x], {x, 0, 2Pi}];

and flip x and y with

Show[gg /. Line[pnts_] :> Line[Reverse /@ pnts]]

regards
  Jens

"David E. Burmaster" wrote:
> 
> Dear MathGroup,
> 
> Is there an easy way to "transpose" the Plot of a graph?
> 
> I know the inverse function in closed form (and it is impossible to invert
> in closed form).
> 
> In other words, I have an equation in closed form for:
> 
>         x =  f^-1[y]
> 
> I want to Plot this inverse function, then "transpose" the graph so that
> the final graphic has x on the horizontal axis and y on the vertical axis.
> 
> Any ideas?
> 
> many thanks,
> David E. Burmaster
> 
> deb at Alceon.com


  • Prev by Date: Re: is there a way to swap the axes in a Plot?
  • Next by Date: RE: is there a way to swap the axes in a Plot?
  • Previous by thread: Re: is there a way to swap the axes in a Plot?
  • Next by thread: RE: is there a way to swap the axes in a Plot?