Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

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

Search the Archive

Re: Plotting different function with different Plotstyle in one graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28859] Re: Plotting different function with different Plotstyle in one graph
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 16 May 2001 03:28:07 -0400 (EDT)
  • References: <9dqe69$4k6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

> Is there any way one can Plot two are more function in one command line
but
> each function has different PlotStyle?

Jose,

Plot[{Sin[x], Cos[x], x/(2Pi)}, {x, 0, 2Pi},
  PlotStyle ->
     {
        {Hue[0], Thickness[.02]},
        {Hue[.7], Thickness[.02], Dashing[{.05, .05}]}
    }
]

Please note that the styles, lists of directives, are used cyclically.

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Jose Capco" <jcapco at mathematik.uni-ulm.de> wrote in message
news:9dqe69$4k6 at smc.vnet.net...
> Dear NG,
>
> Is there any way one can Plot two are more function in one command line
but
> each function has different PlotStyle (e.g. one has normal thickness, one
is
> thicker .. etc.). Does one really have to define each function in seperate
> lines. Thanks in advance.
>
> Sincerely,
> Jose Capco
>
>
>




  • Prev by Date: Re: Decimal math bug?
  • Next by Date: Re: help! - questions about Integration
  • Previous by thread: Re: Plotting different function with different Plotstyle in one graph
  • Next by thread: Bug integrating