From: <mme...@us...> - 2008-04-28 11:31:28
|
Revision: 5087 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5087&view=rev Author: mmetz_bn Date: 2008-04-28 04:31:19 -0700 (Mon, 28 Apr 2008) Log Message: ----------- array of indices as integers in hexbin Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2008-04-28 07:41:25 UTC (rev 5086) +++ trunk/matplotlib/lib/matplotlib/axes.py 2008-04-28 11:31:19 UTC (rev 5087) @@ -4533,10 +4533,10 @@ sy = (ymax-ymin) / ny x = (x-xmin)/sx y = (y-ymin)/sy - ix1 = npy.round(x) - iy1 = npy.round(y) - ix2 = npy.floor(x) - iy2 = npy.floor(y) + ix1 = npy.round(x).astype(int) + iy1 = npy.round(y).astype(int) + ix2 = npy.floor(x).astype(int) + iy2 = npy.floor(y).astype(int) nx1 = nx + 1 ny1 = ny + 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |