Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14209 > unrolled thread
| Started by | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| First post | 2013-04-17 06:30 +0000 |
| Last post | 2013-04-18 09:33 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Plot with axes exchanged Murray Eisenberg <murray@math.umass.edu> - 2013-04-17 06:30 +0000
Re: Plot with axes exchanged "Dr. Wolfgang Hintze" <weh@snafu.de> - 2013-04-18 09:33 +0000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2013-04-17 06:30 +0000 |
| Subject | Re: Plot with axes exchanged |
| Message-ID | <kklfhp$7pe$1@smc.vnet.net> |
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 <weh@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 murray@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
[toc] | [next] | [standalone]
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Date | 2013-04-18 09:33 +0000 |
| Message-ID | <kkoel9$gko$1@smc.vnet.net> |
| In reply to | #14209 |
On 17 Apr., 08:30, Murray Eisenberg <mur...@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...@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...@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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web