Hide contour linestroke on pyplot.contourf to get only fills

前端 未结 4 516
北恋
北恋 2020-12-05 00:45

I have a pet project to create images of maps, where I draw the roads and other stuff over a contour plot of the terrain elevation. It is intended to plan mountain bike rout

4条回答
  •  一整个雨季
    2020-12-05 01:08

    The posted solution did not work for me with alpha set to <1, but I found the answer in this solution: Matplotlib Contourf Plots Unwanted Outlines when Alpha < 1

    Adding the argument antialiased=True solved the issue for me.

提交回复
热议问题