Combining scatter plot with surface plot

前端 未结 2 793
萌比男神i
萌比男神i 2020-12-15 22:11

How can I combine a 3D scatter plot with a 3D surface plot while keeping the surface plot transparent so that I can still see all the points?

2条回答
  •  一个人的身影
    2020-12-15 23:06

    Using siluaty's example; instead of using transparency through the cmap=theCM command, you can adjust the alpha value. This may get you what you want?

    ax.plot_surface(x_surf, y_surf, z_surf, cmap=cm.hot, alpha=0.2)
    

提交回复
热议问题