From: Marek G. <mg...@gm...> - 2010-10-26 07:53:51
|
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 |