From: Eric E. <eem...@es...> - 2009-12-30 23:02:12
|
great. Thanks! I had a look at the thumbnails but didn't find the one you point out. (And the doc is confusing) Thanks! and yes, very weird behaviour when the two arrays have the same length... Eric On 30/12/09 19:53, Jae-Joon Lee wrote: > x1 = random(1000) > x2 = random(1000) > > n, bins, patches = hist(np.array([x1, x2]).transpose()) > > plt.setp(patches[0], color="r") > plt.setp(patches[1], color="b") > > also see > > http://matplotlib.sourceforge.net/examples/pylab_examples/hist_colormapped.html |