Hide contour linestroke on pyplot.contourf to get only fills

前端 未结 4 514
北恋
北恋 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:10

    Try adding the kw argrument to plt.contourf(...) call: either lw=0 or ls=None. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contourf

提交回复
热议问题