Answers for "matplotlib remove white lines between contour"

0

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")
Posted by: Guest on March-29-2022

Code answers related to "matplotlib remove white lines between contour"

Python Answers by Framework

Browse Popular Code Answers by Language