【问题标题】:3D matplotlib figure inside a Spyder terminalSpyder 终端内的 3D matplotlib 图
【发布时间】:2016-02-28 01:37:37
【问题描述】:

我正在 mathplotlib 中绘制 3D 图:

fig = plt.figure()
ax = fig.add_subplot(111, '3d')
ax.scatter(x,y,z)
plt.show()

该图在终端中打开,因此我无法检查它。如何在新窗口中打开查看?

谢谢。

【问题讨论】:

  • 什么意思:在终端中打开
  • @AndreySobolev:Spyder 终端

标签: python matplotlib spyder mplot3d


【解决方案1】:

绘图的默认位置在 IPython 控制台。我猜这就是你所说的终端的意思?

您可以在 首选项 > IPython 控制台 > 图形 > 后端中指定它们的显示位置。改为自动

正如this question 建议的那样,我必须重新启动 Spyder 才能让它注意更改。

【讨论】:

    猜你喜欢
    • 2021-10-17
    • 2019-12-15
    • 2020-10-22
    • 1970-01-01
    • 2021-07-19
    • 2016-02-24
    • 2013-04-02
    • 2011-12-17
    • 1970-01-01
    相关资源
    最近更新 更多