Getting crazy with "legend"

Hi,

I found an odd problem with "legend". I get the right labels/text but not the "small colour bars" associated to them.
There is something I must do wrong..

Here is a fake example:

···

===========
pa1 = hist(arange(1,100,1), bins=arange(0,100,10))
pa2 = hist(arange(1,100,1), bins=arange(0,100,10))
clf
width = 5 # the width of the bars
p1 = bar(pa1[1], pa1[0], width, color='r')
p2 = bar(pa2[1]+width, pa2[0], width, color='y')
legend([pa1[0], pa2[0]], ["$r_e/5$", "$r_e/2.5$"], shadow=True)

Thanks for any input on this!

Eric

--

Observatoire de Lyon emsellem@...419...
9 av. Charles-Andre tel: +33 4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 4 78 86 83 86
France http://www-obs.univ-lyon1.fr/eric.emsellem