Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14205
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Plot with axes exchanged |
| Date | 2013-04-16 08:21 +0000 |
| Message-ID | <kkj1lj$1p$1@smc.vnet.net> (permalink) |
| References | <kkikc9$rnl$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Am 16.04.2013 06:34, schrieb Dr. Wolfgang Hintze:
> 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.
Plot[InverseFunction[(#^2&)][x],{x,0,1}]
may give you the wrong branch.
To get the desired branch use a parametrization
ParametricPlot[{x^2],x},{x,0,1}]
or mirror the graphics data at the identity function graph
pl = Plot[x^2, {x, -1, 2}];
pl1 = Graphics[pl[[1]] /. {x_Line :> Map[Reverse, x, {2}]},
Axes -> True]
--
Roland Franzius
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Plot with axes exchanged "Dr. Wolfgang Hintze" <weh@snafu.de> - 2013-04-16 04:34 +0000 Re: Plot with axes exchanged Vince Virgilio <blueschi@gmail.com> - 2013-04-16 08:21 +0000 Re: Plot with axes exchanged Roland Franzius <roland.franzius@uos.de> - 2013-04-16 08:21 +0000
csiph-web