Hi All,

I think I might have uncovered a bug in the legend code when using
multiple patches so that only the first patch type is used in the
legend.

In [41]: matplotlib.__version__
Out[41]: '0.87.5'

(that is revision 2782 from SVN)

Here is some code that shows the problem:

------------------------------
from pylab import *

binctrs = linspace(-4.0, 4.0, 15)
vals = randn(1000)
n1, bins1, p1 = hist(vals, binctrs, align='center')
n2, bins2, p2 = hist(vals[:300], binctrs, align='center')
setp(p1, 'facecolor', 'k', 'alpha', 0.2)
setp(p2, 'facecolor', 'g', 'alpha', 0.9)
legend((p1, p2), ("Frobs", "NewFrobs"))
show()
------------------------------

Thanks,

Scott

-- 
Scott M. Ransom            Address:  NRAO
Phone:  (434) 296-0320               520 Edgemont Rd.
email:  [EMAIL PROTECTED]             Charlottesville, VA 22903 USA
GPG Fingerprint: 06A9 9553 78BE 16DB 407B  FFCA 9BFA B6FF FFD3 2989

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to