That looks like exactly what I am looking for. Thanks JJ.
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/black-and-hatched-legend-handle-tp40979p41247.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
---
I'm trying to make a legend handle that is half black and half hatched. I've
tried ...
...
rpos1 = ax.bar(ind, pos1, width, color='k', label='+1')
rneg1 = ax.bar(ind, neg1, width, color='w', hatch='///', label='-1')
rpos2 = ax.bar(ind, pos2, width, color='w', label='+2')
rneg2 = ax.bar(ind, neg2,
I've attached 2.py and 3.py which differ only in how many bars are graphed.
The "nudge" variable was intended to move the left-most bar away from the
y-axis. This approach seems to work for graphs containing more than 2 bars,
but not those with only 2 bars. I'm curious about this behaviour and am
i