Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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]]

Regards,

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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.