python - 为什么 Python 中的 plot_trisurf 在不同的数据和平台中没有显示任何图?
问题描述
这是我在 python 中的代码:
df = pd.DataFrame({'x':Final_X, 'y': Final_Y, 'z':Final_Z})
fig = plt.figure()
ax = Axes3D(fig)
surf = ax.plot_trisurf(df.x, df.y, df.z, cmap=cm.jet, linewidth=0.1)
fig.colorbar(surf, shrink=0.5, aspect=5)
plt.show()
我通常会从图中得到正确的输出,但是当我输入更大的数据时,会在输出中看到类似这样的内容:
<Figure Size 640*480 with 2 Axis>
并且没有显示任何其他内容。有什么帮助吗?
解决方案
这显然是由于某些系统的分辨率。有时由于绘图后发生错误
推荐阅读
- javascript - “HTMLElement”类型上不存在属性“bar”
- sql-server - 如何比较sql server中xml属性中的日期
- dask - Dask 分布式 ImportError: Please 'pip install zict' with Python 2.7 on Centos 7
- python - python regex - 查找具有特定类的html标签
- sql - 计算导致“输入不匹配”错误的值的出现次数?
- html - 页脚标签隐藏在 Bootstrap 中
- ios - 协议代表迅速返回 nil
- javascript - 如何在“放置”函数中的项目中传递此列表索引 0
- kubernetes - 如何在 Kubernetes 的另一个节点中访问节点的 IP 地址和端口
- ios - 从 Firebase Firestore 获取 Int 数据的总和