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
- Follow-Ups:
- Re: PlotStyle will not distribute over Table
- From: <ingolf.dahl@telia.com>
- Re: PlotStyle will not distribute over Table