MathGroup Archive 2014

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

Search the Archive

Re: switching axes in Plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132269] Re: switching axes in Plot?
  • From: danilozmaj at gmail.com
  • Date: Tue, 28 Jan 2014 06:14:43 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <gmu8qa$glt$1@smc.vnet.net> <gn11j9$84b$1@smc.vnet.net>

On Thursday, February 12, 2009 12:36:09 PM UTC+1, Jens-Peer Kuska wrote:
> Hi,
> 
> Show[Plot[{Cos[x], Sin[x], Sin[x]/x}, {x, 0, 8 Pi}] /.
>    Line[pnts_] :> Line[Reverse /@ pnts], PlotRange -> All]
> 
> Regards
>    Jens
> 
> John.Finnigan at csiro.au wrote:
> > When using Plot to plot F[x] as a function of x, Mathematica automatically =
> > assigns the independent variable x to the horizontal axis and the dependent=
> >  variable F[x] to the horizontal.  I often want to switch this around so th=
> > at the independent variable runs on the vertical axis and the dependent on =
> > the horizontal.  I feel sure there ought to be a simple way to tell Plot to=
> >  make this change but I have never found it and instead have resorted to co=
> > nvoluted approaches.  Can anyone tell me what the simple trick is, if it ex=
> > ists?
> > Thanks
> > John Finnigan
> > 
> >

Thank you



  • Prev by Date: Re: How Can I Change the Appearance of a Locator in Manipulate
  • Next by Date: Re: How Can I Change the Appearance of a Locator in Manipulate
  • Previous by thread: Re: ???
  • Next by thread: Initializing values in FindRoot in Mathematica