图窗口调整大小问题Matplotlib工具栏分解

2024-05-28 20:13:44 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图在Matplotlib中调整图形窗口的大小时,工具栏会消失。下面给出的屏幕截图示例。这是一个错误还是我的脚本缺少设置?在

  • matplotlib版本:1.5.1
  • 数字1.11.1
  • python 2.7
  • Windows 7系统

非常小的代码:

import numpy as np
import matplotlib.pyplot as plt

x=np.random.randint(0,5,10)
plt.plot(x)
plt.show()

enter image description here

抱歉,图片看起来模糊了,但希望你能看到工具栏缩小,因为我调整大小。在


Tags: import版本脚本图形示例屏幕matplotlibas

热门问题