Tkinter:最大化 matplotlib GUI 窗口 [英] Tkinter: maximize matplotlib GUI window

查看:50
本文介绍了Tkinter:最大化 matplotlib GUI 窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,matplotlib gui 绘图(a la plt.show())似乎不适应显示器分辨率,并且在高分辨率屏幕上显得很小.是否有 matplotlib/tkinter 修复程序,或者我是否在 Windows 设置中的某处摆弄过?

So it appears that matplotlib gui plots (a la plt.show()) don't adapt to monitor resolution and appear tiny on high resolution screens. Is there a matplotlib/tkinter fix or do I have fiddle around somewhere in Windows settings?

谢谢

推荐答案

plt.show() 调用这些函数之前:

Before plt.show() call these functions:

mng = plt.get_current_fig_manager()
mng.frame.Maximize(True)

也许它可以解决您的问题.

Maybe it solve your issue.

这篇关于Tkinter:最大化 matplotlib GUI 窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆