[Matplotlib-users] Bug in contourf or BoundaryNorm?

2014-03-28 Thread Jesper Larsen
Hi matplotlib users, I believe the normalization behaviour is wrong for contourf at least when using a BoundaryNorm. In the script below I am using the same norm to plot the same data using contourf and pcolormesh. The color should change around an x value of 0.15 but it is shifted somewhat for

Re: [Matplotlib-users] Bug in contourf or BoundaryNorm?

2014-03-28 Thread Ian Thomas
On 28 March 2014 12:56, Jesper Larsen jesper.webm...@gmail.com wrote: I believe the normalization behaviour is wrong for contourf at least when using a BoundaryNorm. In the script below I am using the same norm to plot the same data using contourf and pcolormesh. The color should change around

Re: [Matplotlib-users] Bug in contourf or BoundaryNorm?

2014-03-28 Thread Jesper Larsen
Hi Ian Thanks for your reply and help. I see your point. I guess it is only the BoundaryNorm where it would make sense to have contourf use the boundary levels from the norm. In my real problem described by the above example I have long forgotten the levs variable when I arrive at the contourf