Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-29 Thread Paul Hobson
On Wed, Jul 29, 2015 at 3:18 AM, Fabien fabien.mauss...@gmail.com wrote: Folks, still in my exploring phase of Matplotlib's ecosystem I ran into following mismatch between the APIs of BoundaryNorm and Normalize. See the following example: import matplotlib as mpl c = mpl.cm.get_cmap()

[Matplotlib-users] Misleading BoundaryNorm error

2015-07-29 Thread Fabien
Folks, still in my exploring phase of Matplotlib's ecosystem I ran into following mismatch between the APIs of BoundaryNorm and Normalize. See the following example: import matplotlib as mpl c = mpl.cm.get_cmap() bnorm = mpl.colors.BoundaryNorm([0,1,2], c.N) nnorm = mpl.colors.Normalize(0, 2)