【发布时间】:2020-12-29 03:07:14
【问题描述】:
我想在我的表面上放置一个网格,但即使线宽不为零,它也不起作用,我还想绘制一个颜色图,用 Z 轴改变颜色,所以墙壁应该以相同的颜色出现因为它们在 Z 中是 0.5 分。希望有人能帮助我,谢谢。
这是我遇到问题的代码部分:
fig = plt.figure()
ax = Axes3D(fig)
surf = ax.plot_trisurf(x, y, z, cmap=plt.cm.get_cmap('jet',4), shade=False,linewidth=0.1, antialiased=False
)
This is my plot with a bad colormap and no grid
This is something similar to I want: with grid and a good colormap
【问题讨论】:
标签: matplotlib plot grid surface colormap