Logo Search packages:      
Sourcecode: matplotlib version File versions

pylab_examples::hexbin_demo2 Namespace Reference


Detailed Description

hexbin is an axes method or pyplot function that is essentially a
pcolor of a 2-D histogram with hexagonal cells.


Variables

tuple cb = plt.colorbar()
 cond = xcond&ycond
float delta = 0.025
int gridsize = 30
tuple x = ynp.arange(-3.0, 3.0, delta)
tuple xcond = (-1 < x)
tuple xmax = x.max()
tuple xmin = x.min()
list xnew = x[cond]
tuple y = Y.ravel()
tuple ycond = (-2 < y)
tuple ymax = y.max()
tuple ymin = y.min()
list ynew = y[cond]
tuple z = Z.ravel()
 Z = Z2-Z1
tuple Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
tuple Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
list znew = z[cond]


Generated by  Doxygen 1.6.0   Back to index