Skip to content
Advertisement

Removing Lines from Contourf in Matplotlib

I am using the following code to contour plot some data using contourf in matplotlib. I have set the transparency of the colourbar to 0.6, but there are annoying lines between each colour interval that I cant get rid of. There doesnt seem to be a way to set linestyle in contourf, any ideas?

JavaScript

enter image description here

Advertisement

Answer

You can add the option antialiased=True to ax1.contourf, it should fix it.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement