Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Ryan Neve
Thank you for the suggestion, but I couldn't see a difference with antialiased either True or False. The lines between contour levels remain. I tried a different colormap (spectral) but it had the same effect. I tried more color levels (256) but the effect got worse. I can't find any example

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Geoffrey Ely
Ryan, I have noticed the same issue with contourf. It seems to be a thin gap between neighboring polygons showing through. You can turn on a thin contour line of the same color to cover the gap: for c in pylab.contourf( x, y, z ).collections: c.set_linewidth( 0.1 ) Not ideal, but it

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Eric Firing
Geoffrey Ely wrote: Ryan, I have noticed the same issue with contourf. It seems to be a thin gap between neighboring polygons showing through. You can turn on a thin contour line of the same color to cover the gap: for c in pylab.contourf( x, y, z ).collections:

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Eric Firing
Ryan Neve wrote: Thank you for the suggestion, but I couldn't see a difference with antialiased either True or False. The lines between contour levels remain. I tried a different colormap (spectral) but it had the same effect. I tried more color levels (256) but the effect got worse. I

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Geoffrey Ely
On Nov 12, 2009, at 10:03 AM, Eric Firing wrote: Geoffrey Ely wrote: Ryan, I have noticed the same issue with contourf. It seems to be a thin gap between neighboring polygons showing through. You can turn on a thin contour line of the same color to cover the gap: for c in

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Eric Firing
Geoffrey Ely wrote: On Nov 12, 2009, at 10:03 AM, Eric Firing wrote: Geoffrey Ely wrote: Ryan, I have noticed the same issue with contourf. It seems to be a thin gap between neighboring polygons showing through. You can turn on a thin contour line of the same color to cover the gap:

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Ryan Neve
Eric, Here's a pcolor plot of the same data: contour_plot = pyplot.pcolor(x_grid,y_grid,z_grid_masked) http://imgur.com/iL4k7.png For contourf I'm using: contour_plot = pyplot.contourf(x_grid,y_grid,z_grid_masked,contour_levels,origin='upper',\ extent=extent,cmap=pyplot.cm.jet) ... where

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-12 Thread Eric Firing
Ryan Neve wrote: Eric, Here's a pcolor plot of the same data: contour_plot = pyplot.pcolor(x_grid,y_grid,z_grid_masked) http://imgur.com/iL4k7.png It looks to me like this is more suitable for showing your data than contourf would be. For contourf I'm using: contour_plot =

[Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-11 Thread Ryan Neve
Hello, In my filled contour plot: http://imgur.com/vXoCL.png There are faint lines between the contour levels. I think they are yellow since they disappear in the yellow parts of the graph and are most obvious in the red areas. Is there any way to get rid of these lines? The number of contour

Re: [Matplotlib-users] Unwanted lines between contourf() contour levels

2009-11-11 Thread Eric Firing
Ryan Neve wrote: Hello, In my filled contour plot: http://imgur.com/vXoCL.png There are faint lines between the contour levels. I think they are yellow since they disappear in the yellow parts of the graph and are most obvious in the red areas. Is there any way to get rid of these lines?