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.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to