Re: [Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh)

2015-07-09 Thread Ronquillo, Edgar Nahum
e.net Subject: Re: [Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh) On 2015/06/30 6:41 AM, Benjamin Root wrote: > It looks like your X data is one element larger than it needs to be. I > know pcolor() accepts grids that a

Re: [Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh)

2015-06-30 Thread Eric Firing
On 2015/06/30 6:41 AM, Benjamin Root wrote: > It looks like your X data is one element larger than it needs to be. I > know pcolor() accepts grids that are (N+1,M+1), and I *think* pcolormesh > does the same. It will also accept grids that are (N,M) as well, but > will drop the last row and collumn

Re: [Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh)

2015-06-30 Thread Benjamin Root
It looks like your X data is one element larger than it needs to be. I know pcolor() accepts grids that are (N+1,M+1), and I *think* pcolormesh does the same. It will also accept grids that are (N,M) as well, but will drop the last row and collumn. Given your statement that it sometimes works, I s

[Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh)

2015-06-29 Thread Ronquillo, Edgar Nahum
Hello, I am getting this error when I try calling pcolormesh this way: pcolormesh(x, y, data.T, cmap=cmap, vmin=0, vmax=100) I am doing the transpose of data so I don't know what could be causing this. By the way, it does work with some images. Any suggestions? Thanks in advance ---