matplotlib/matplotlib — Issue #740: plt.pcolormesh and shape mismatch
Author: gkuhl
Created: 2012-03-05 09:32:17+00:00
State: open

The function "pcolormesh(X,Y,C)" will raise no ValueError, if the shapes of C and X,Y are not compatible. Instead a wrong plot will be produced. I suggest to raise a ValueError, if C has a shape of (n,m) and the shapes of X and Y or neither (n,m) nor (n+1,m+1).