Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

matplotlib remove white lines between contour

cnt = plt.tricontourf(x, y, z, levels=levels, cmap="ocean")

# This is the fix for the white lines between contour levels
for c in cnt.collections:
    c.set_edgecolor("face")

plt.savefig("test.pdf")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #matplotlib #remove #white #lines #contour
ADD COMMENT
Topic
Name
7+3 =