MathGroup Archive 2009

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

Search the Archive

PlotStyle will not distribute over Table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96639] PlotStyle will not distribute over Table
  • From: Kresimir Kumericki <kkumer at calculon.phy.hr>
  • Date: Wed, 18 Feb 2009 04:22:33 -0500 (EST)

I create several functions using Table and want to plot them
on the same plot with different styles. However, it seems that
the last style in the list of PlotStyle options is used for all 
the lines.  E.g.

    Plot[Table[Sin[a x], {a, 1, 2}], {x, 0, Pi}, 
     PlotStyle -> {Hue[0.7], Hue[1]}]

will have both lines with red color, while

    Plot[{Sin[ x], Sin[2 x]} , {x, 0, Pi}, 
     PlotStyle -> {Hue[0.7], Hue[1]}]

works correctly. Any idea how to make first version work?
(I have Mathematica 6.0)

Kresimir



  • Prev by Date: Re: NDSolve - Nice function but stiffness-problem
  • Next by Date: Re: Factor by Grouping
  • Previous by thread: Re: weird interpolation issues
  • Next by thread: Re: PlotStyle will not distribute over Table