python - 带有 3 维列表的 3d 散点图
问题描述
print(grid)
xmin, xmax, ymin, ymax, zmin, zmax = 0, x, 0, y, 0, z
plt.rcParams["figure.figsize"] = (6, 6)
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.plot(grid)
plt.grid(True)
plt.show()
ax.scatter(x,y,z)
我想绘制 3D 散点图。但 scatter() 总是必须使用 x,y,z 数据框。我只有一个 3 维列表数据。我想要带有 3 维列表的 3d 散点图,如下图所示。
解决方案
推荐阅读
- django - Django 不提供常见的静态文件
- excel - 过滤日期列的函数
- javascript - TypeError:importPackage 不是函数,它是对象
- sql - 如何使用 SQL 在一行中的多个逗号后添加一个字符串?
- r - 使用 VCorpus 的 tm_map 函数不能很好地使用 stemDocument
- javascript - 尝试将 ajax 添加到 rails 应用程序以刷新评论但是 js 文件未在浏览器中执行
- asp.net - 是否保证在 asp.net 中针对未处理的异常执行 finally 块?
- c# - 如何将数字从场景 1 导入场景 2?
- python - 如何在保持其独特性的同时擦洗ssn?
- reactjs - 如何根据使用私有路由将用户重定向到不同的页面