Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14193 > unrolled thread
| Started by | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| First post | 2013-04-16 04:34 +0000 |
| Last post | 2013-04-16 08:21 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Date | 2013-04-16 04:34 +0000 |
| Subject | Plot with axes exchanged |
| Message-ID | <kkikc9$rnl$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | Vince Virgilio <blueschi@gmail.com> |
|---|---|
| Date | 2013-04-16 08:21 +0000 |
| Message-ID | <kkj1ld$1i$1@smc.vnet.net> |
| In reply to | #14193 |
Perhaps too naive:
Rotate[Plot[Sin[x], {x, 0, 2 Pi}], 90 Degree]
Vince
On Tuesday, April 16, 2013 12:34:17 AM UTC-4, Dr. Wolfgang Hintze 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
[toc] | [prev] | [next] | [standalone]
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Date | 2013-04-16 08:21 +0000 |
| Message-ID | <kkj1lj$1p$1@smc.vnet.net> |
| In reply to | #14193 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web