Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29935] Re: [mg29910] is there a way to swap the axes in a Plot?
  • From: Mianlai Zhou <lailai at nikhef.nl>
  • Date: Thu, 19 Jul 2001 03:57:00 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi, David

If you only want to "see" the transposed plotted graph (i.e. by eye), I
have an idea. Suppose you first make a plot of some function, say,
Sin[x]+x:

   h = Plot[Sin[x]+x, {x, 1, 10}]

(here you assigned the graphics output to a symbol). Then you can use it
to get a transposed graph as follows:

   Show[h /. {x_?NumberQ, y_?NumberQ} :> {y, x}]

On my computer it works perfectly. Hope it work well for you, too.

Good luck!

Mianlai Zhou
Theory Group, NIKHEF
Amsterdam, The Netherlands

On Wed, 18 Jul 2001, 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: Integrate[1/x, x] ??
  • Next by Date: Non-Integer HarmonicNumbers?
  • 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?