"Lee, Young-Jin" <yojlee@...> writes:
> Then, I realized because each bar is so narrow I can't see the color of
> the bars but only outside lines (I see the colors by zooming it), which
> I couldn't find a way to change the color. My question is, is there any
> way either 1) to get rid of the outside lines or 2) to change the color
> of the lines? Thanks much in advance!
To get rid of the lines, set the linewidth property of the bars to 0;
to change their color, set the edgecolor property. For example, using
In : a=bar([1,2,3,4],[3,1,4,1],lw=0)
In : setp(a, lw=10, ec='red')
Out: [None, None]
Here I used the abbreviations lw and ec for linewidth and edgecolor.
The first command creates a bar chart where all bars have line width
zero, the second modifies one of the bars to have very thick red edges.
You can experiment with the properties using the pylab commands getp
Jouni K. Seppänen