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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users