Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plt.pcolormesh and shape mismatch #740

Closed
gkuhl opened this issue Mar 5, 2012 · 3 comments
Closed

plt.pcolormesh and shape mismatch #740

gkuhl opened this issue Mar 5, 2012 · 3 comments

Comments

@gkuhl
Copy link

gkuhl commented Mar 5, 2012

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).

@efiring
Copy link
Member

efiring commented Aug 13, 2012

This looks worth improving, with checks for all the pcolor-like methods. It is actually OK for either or both of the dimensions of C to be 1 less than the corresponding X and Y dimensions, unless gouraud shading is being used. All this will take a little care, and some tests. At the same time, pcolorfast argument handling might be improved.

@pelson
Copy link
Member

pelson commented May 22, 2013

Duplicate of #1688?

@efiring
Copy link
Member

efiring commented May 22, 2013

On 2013/05/21 11:03 PM, Phil Elson wrote:

Duplicate of #1688 #1688?

Yes. I will close it and leave the newer duplicate in place.

@efiring efiring closed this as completed May 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants