Legend colors

I seem to experiencing a bug when doing bar charts and display a legend.
I'm calling the figlegend properly I think with a reference to the objects
returned from the bar() calls. The problem is both color patches in the
legend appear orange. Any ideas?
I'm using matplotlib0.87.7, Python2.5, and Numpy 1.0.

-Robin Friedrich

···

=====================================
#!/usr/bin/env python2.5
from pylab import *
from matplotlib.ticker import MultipleLocator

def plot9(nodes, X, Y1, Y2):
    i = 0
    for node in nodes:
        a = subplot(len(nodes), 1, i+1)
        a.xaxis.set_major_locator(MultipleLocator(3))
        a.xaxis.set_minor_locator(MultipleLocator(1))
        a.yaxis.set_major_locator(MultipleLocator(50))
        a.yaxis.set_minor_locator(MultipleLocator(10))
        axis([0,24,0,100])
        bar_cpu = bar(X, Y1, width=0.75, color="blue")
        bar_wait = bar(X, Y2, width=0.75, color="orange", bottom=Y1)
        i += 1

    xlabel("Hour of Day")
    figtext(0.5, 0.96, "Compute Server Loading", horizontalalignment='center')
    figlegend( (bar_wait, bar_cpu), ("Wait", "CPU"), "upper right", shadow=True)
    savefig('fdxcn_plot', dpi=100)

nodes = "fdxcn01 fdxcn02".split()
cpu = [0,0,0,0,0,3,12,14,18,29,38,49,61,32,19,16,9,7,3,2,0,0,9,1]
t = []
wait = []
for i in range(len(cpu)):
    t.append(i + 0.25)
    wait.append(cpu[i]/3.0)
plot9(nodes, t, cpu, wait)