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

*To*: mathgroup at smc.vnet.net*Subject*: [mg29954] Re: [mg29910] is there a way to swap the axes in a Plot?*From*: BobHanlon at aol.com*Date*: Thu, 19 Jul 2001 03:57:24 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

In a message dated 2001/7/18 2:19:22 AM, deb at alceon.com writes: >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. > plt = Plot[{ArcSin[x], Log[1-x]}, {x, -1, 1}]; Show[plt /. Line[x_] :> Line[Reverse /@ x]]; Bob Hanlon Chantilly, VA USA