Re: Plot with axes exchanged
- To: mathgroup at smc.vnet.net
- Subject: [mg130517] Re: Plot with axes exchanged
- From: "Dr. Wolfgang Hintze" <weh at snafu.de>
- Date: Thu, 18 Apr 2013 05:33:35 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <20130416043431.D5E826A17@smc.vnet.net> <kklfhp$7pe$1@smc.vnet.net>
On 17 Apr., 08:30, Murray Eisenberg <mur... at math.umass.edu> wrote: > For a function f, instead of the points {x, f[x]}, you want the points {f[x], x}. So use ParametricPlot. For example: > > f[x_] := x^2 > ParametricPlot[{f[x], x]}, {x, 0, 2}] > > On Apr 16, 2013, at 12:34 AM, Dr. Wolfgang Hintze <w... at snafu.de> wrote: > > > How can I exchange axes in a plot, i.e. plot the function value along > > the horizontal axis and the independent variable against the vertical > > axis? > > > Any help is apreciated. > > > Wolfgang > > --- > Murray Eisenberg mur... at math.umass.edu > Mathematics & Statistics Dept. > Lederle Graduate Research Tower phone 413 549-1020 (H) > University of Massachusetts 413 545-2838 (W) > 710 North Pleasant Street fax 413 545-1801 > Amherst, MA 01003-9305 Thanks you all for the interesting solutions. Regards, Wolfgang
- References:
- Plot with axes exchanged
- From: "Dr. Wolfgang Hintze" <weh@snafu.de>
- Plot with axes exchanged