From: Jae-Joon L. <lee...@gm...> - 2010-10-27 01:12:25
|
One option is to use proxy artists. http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist Regards, -JJ 2010/10/26 Marek Giebułtowski <mg...@gm...>: > Dear All, > I use hist in pylab.I have different sets of data in different colours > in one chart. In legend all rectangulars are unfortunately blue. > In plot() it is ok but not in hist(). > How to receive correct colours in histogram legend? > > x is nested list x[1][2][3] is an ordinary list. > for p in range(2,3): > for c in range(0,4): > hist(x[c][p][7],range=(0,2000),bins=20) > title('Axis dist[m];nr '+str(p)+nams(x[3][p][7])) > legend(['LHXGHX','>1','>3','>5']) > figure() > Best Regards > Marek Giebułtowski > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |