From: Jonathon A. <jan...@al...> - 2008-09-11 18:20:26
|
I have a multicolor bar chart that I create like this: bar(dates*4, b3 + b2 + b1 + b0, color=(['#9E73C1']*len(dates) + ['#A6DE62']*len(dates) + ['#F35E5A']*len(dates) + ['#4992DE']*len(dates)), width=4) How can I create a legend for this? leg = legend(["98,304 - 163,840 Cores", "32768 - 98,303 Cores", "8,192 - 32,767 Cores", "0 - 8,191 Cores"], loc="upper left", shadow=True) Shows the same color for each legend box, presumably because it's the last color used in drawing the "line" in my bar chart. ~jon |