¡@

Home 

python Programming Glossary: view_ymax

Efficient method of calculating density of irregularly spaced points

http://stackoverflow.com/questions/6652671/efficient-method-of-calculating-density-of-irregularly-spaced-points

data_xmin 2. data_xmax 2. # view area range view_ymin .5 view_ymax .5 view_xmin .5 view_xmax .5 # generate data xl np.random.uniform.. 0 len xl if view_xmin xl i view_xmax and view_ymin yl i view_ymax xlvis.append xl i ylvis.append yl i fig plt.figure # plot histogram.. zd xe ye np.histogram2d yl xl bins 10 range view_ymin view_ymax view_xmin view_xmax normed True plt.title 'numpy.histogram2d..