¡@

Home 

python Programming Glossary: view_xmax

Efficient method of calculating density of irregularly spaced points

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

# view area range view_ymin .5 view_ymax .5 view_xmin .5 view_xmax .5 # generate data xl np.random.uniform data_xmin data_xmax.. xlvis ylvis for i in range 0 len xl if view_xmin xl i view_xmax and view_ymin yl i view_ymax xlvis.append xl i ylvis.append.. yl xl bins 10 range view_ymin view_ymax view_xmin view_xmax normed True plt.title 'numpy.histogram2d ' str time.clock t0..