python - 让 Pyplot 窗口显示为 Windows 7 中的最顶层窗口

标签 python windows matplotlib anaconda spyder

我在 Spyder 环境中使用 Anaconda 和 Python 2.7。绘制 pyplot 时,窗口隐藏在我所有其他打开的窗口后面,而不是出现在前面。我怎样才能让图形出现在所有其他打开的窗口前面?

matplotlib 后端是:Qt4Agg

最佳答案

(Spyder dev here)唯一具有此功能的后端是 TkAgg。 @valentin 在他/她的回答中发布的代码在使用该后端时应该可以工作。

所有其他后端都错过了这种可能性。很长一段时间以来,这一直是 Matplotlib 的一个已知限制,如本 Github issue 中所示。 .

关于python - 让 Pyplot 窗口显示为 Windows 7 中的最顶层窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29435725/

相关文章:

python - 将 matplotlib 轮廓限制/屏蔽到数据区域

python - 在flask中使用工厂模式时如何在flask扩展中使用配置?

c - cygwin 中的\a 没有声音

ruby-on-rails - 从 Windows 访问在 Vagrant box 上运行的 Rails 服务器

python - 如何在 Pandas 中绘制 groupby 之后的聚合结果?

python - 如何消除 matplotlib 中子图之间的间隙

python - 使用预定义验证集 Sklearn 执行网格搜索

Python:如何操作列表以获取以 '+' 开头的字符串?

python - 洪水填充算法在 python 中崩溃

python - 连接到本地 SQL Server 实例