Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-11 Thread Eric Firing
Yannick Copin wrote: > Hi, > > Eric Firing wrote: >>> from pylab import * >>> X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) >>> Z = randn(*X.shape) >>> lev = linspace(Z.min(),Z.max(),11)[1:-1] >>> contourf(X,Y,Z, lev, extend='both') >>> contour(X,Y,Z, lev, colors='k') >>> show() >> >> Now,

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-11 Thread Yannick Copin
Hi, Eric Firing wrote: >> from pylab import * >> X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) >> Z = randn(*X.shape) >> lev = linspace(Z.min(),Z.max(),11)[1:-1] >> contourf(X,Y,Z, lev, extend='both') >> contour(X,Y,Z, lev, colors='k') >> show() > > Now, you may be wondering why we can't s

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-08 Thread Eric Firing
Yannick Copin wrote: > Hi, > > running the simple test code: > > from pylab import * > X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) > Z = randn(*X.shape) > lev = linspace(Z.min(),Z.max(),11)[1:-1] > contourf(X,Y,Z, lev, extend='both') > contour(X,Y,Z, lev, colors='k') > show() > > you wi

[Matplotlib-users] Different contours in contour and contourf

2006-12-08 Thread Yannick Copin
Hi, running the simple test code: from pylab import * X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) Z = randn(*X.shape) lev = linspace(Z.min(),Z.max(),11)[1:-1] contourf(X,Y,Z, lev, extend='both') contour(X,Y,Z, lev, colors='k') show() you will probably notice that the 'contourf' contours