MathGroup Archive 2002

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

Search the Archive

Re: how to plot 2 functions in different colors?


Plot[{x, x^2, x^3}, {x, 0, 1},
  PlotStyle -> {{Thickness[.02], Hue[0]}, {Dashing[{.05, .02}], Hue[.67]}}]

If there are more styles than expressions then the styles cycle.
--
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


"Guojun Zhu" <gzhu1 at uiuc.edu> wrote in message
news:a8bqpf$3kn$1 at smc.vnet.net...
> I can plot two functions in one diagram with
plot[{fa[x],fb[x]},{x,1,100}],
> but they are in same color and hard to seperated.  Is there any way to
make
> them in different colors?
>
> --
> Sincerely Yours
> Guojun Zhu
>
>




  • Prev by Date: Re: how to plot 2 functions in different colors?
  • Next by Date: Re: minimization algorithms
  • Previous by thread: Re: how to plot 2 functions in different colors?
  • Next by thread: RE: how to plot 2 functions in different colors?