The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Plot with axes exchanged
Replies: 4   Last Post: Apr 18, 2013 5:33 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Simons, F.H.

Posts: 107
Registered: 12/7/04
Re: Plot with axes exchanged
Posted: Apr 16, 2013 4:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

For example the sine function:

With[{gr=Plot[Sin[x], {x, 0, 2 Pi}, PlotRange->All]}, gr /.
Line[x_]:>Line[Reverse /@ x]]


Fred Simons
Eindhoven University of Technology

Op 16-4-2013 6:34, Dr. Wolfgang Hintze schreef:
> 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.