Python,平滑在数组中具有特定值的曲面图

问题描述

使用 Spyder 进行编译。 我的代码

...
degrees = [0,30,60]
degrees2 = [0,60]
z = np.reshape(e_array,(3,3))
degrees,degrees2 = np.meshgrid(degrees,degrees2)

fig = plt.figure(figsize = (10,7))
ax = fig.add_subplot(projection ="3d")


surf = ax.plot_surface(degrees2,degrees,z,cmap="summer",linewidth=0,rstride=1,cstride=1,antialiased=True)
...

我的 e_array 数组有 9 个元素,例如 1750,1400,800,547...所以它不依赖于 degree/degrees2 数组。 我将 e_array as z 重塑为 3x3 以获得此图。 Surface plot from this code

问题是输出图有锐利的边缘。我已经阅读了有关绘图平滑的文档,但无法弄清楚如何使用像我这样的特定和小型数据组来执行此操作。谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)