MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plot with axes exchanged

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

  • Prev by Date: Re: How to apply tags to expression terms?
  • Next by Date: Re: Turning a Sequence into a List?
  • Previous by thread: Plot with axes exchanged
  • Next by thread: Re: Plot with axes exchanged