Skip to content

Commit 2f91670

Browse files
committed
Fixed pcolormesh bug
Integer X input was causing Y to be turned into an integer as well. svn path=/trunk/matplotlib/; revision=4461
1 parent 2a9e66e commit 2f91670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4728,7 +4728,7 @@ def pcolormesh(self, *args, **kwargs):
47284728
X = X.ravel()
47294729
Y = Y.ravel()
47304730

4731-
coords = npy.zeros(((Nx * Ny), 2), X.dtype)
4731+
coords = npy.zeros(((Nx * Ny), 2), dtype=float)
47324732
coords[:, 0] = X
47334733
coords[:, 1] = Y
47344734

0 commit comments

Comments
 (0)