Hi everyone Does anyone know how to asign different
> patches in legend when plotting 2 or more histograms in
> the same figure. I've tried:
> legend((patches1,patches2),(hist1,hist2)) ,
> but this gives the same patches in the legend inset.
I'm assuming patches1 and patches2 are the return values from hist, in
which case they are each a *list* of patches. What you want to do is
pass a *single* item from each of those lists as representative
legend( (patches1,patches2), ('label1', 'label2') )
Next time if you post a more complete code snippet, I won't have to
guess what patches1 and patches2 are!
Hope this helps,