Skip to content

Commit

Permalink
Fixed pcolormesh bug
Browse files Browse the repository at this point in the history
Integer X input was causing Y to be turned into
an integer as well.

svn path=/trunk/matplotlib/; revision=4461
  • Loading branch information
efiring committed Nov 27, 2007
1 parent 2a9e66e commit 2f91670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4728,7 +4728,7 @@ def pcolormesh(self, *args, **kwargs):
X = X.ravel()
Y = Y.ravel()

coords = npy.zeros(((Nx * Ny), 2), X.dtype)
coords = npy.zeros(((Nx * Ny), 2), dtype=float)
coords[:, 0] = X
coords[:, 1] = Y

Expand Down

0 comments on commit 2f91670

Please sign in to comment.