Re: inconsistent synatx for FillingStyle and PlotStyle?
- To: mathgroup at smc.vnet.net
- Subject: [mg103220] Re: inconsistent synatx for FillingStyle and PlotStyle?
- From: dr DanW <dmaxwarren at gmail.com>
- Date: Thu, 10 Sep 2009 07:25:45 -0400 (EDT)
- References: <h87pj3$5i0$1@smc.vnet.net>
This one is dodgy, but it works.
The solution is simple if you are content with the default colors:
g=ListLinePlot[{{{1, 1}}, {{2, 3}}}, Joined -> False, Filling ->
Axis,
AxesOrigin -> {0, 0}]
If you do not like the default colors, replace them after the fact:
DefaultPlotColor[i_] :=
Hue[FractionalPart[0.67 + 2.0 (i - 1)/GoldenRatio], 0.6, 0.6]
g /. {DefaultPlotColor[1] -> Red, DefaultPlotColor[2] -> Blue}
I am assuming of course that you want the filling lines to be the same
color as the plot point.
Daniel