From: <md...@us...> - 2007-11-12 18:53:27
|
Revision: 4232 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4232&view=rev Author: mdboom Date: 2007-11-12 10:53:25 -0800 (Mon, 12 Nov 2007) Log Message: ----------- [ 1691298 ] pcolormesh shows empty plot when plotting small time ranges Avoiding downcasting the data before we have to. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2007-11-12 18:10:25 UTC (rev 4231) +++ trunk/matplotlib/lib/matplotlib/axes.py 2007-11-12 18:53:25 UTC (rev 4232) @@ -4727,7 +4727,7 @@ X = X.ravel() Y = Y.ravel() - coords = npy.zeros(((Nx * Ny), 2), npy.float32) + coords = npy.zeros(((Nx * Ny), 2), X.dtype) coords[:, 0] = X coords[:, 1] = Y This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |