假设我有以下代码块:
import matplotlib.pyplot as plt
manager = plt.get_current_fig_manager()
manager.full_screen_toggle()
plt.show()
屏幕设置为全屏模式。我的问题是任务栏被隐藏了。如何调整全屏模式以使其不隐藏我的任务栏?
最佳答案
我经常用
mng = plt.get_current_fig_manager()
mng.frame.Maximize(True)
在调用 plt.show()
之前,我得到了一个最大化的窗口。这仅适用于“wx”后端。
或者试试这个,
wm = plt.get_current_fig_manager()
wm.window.state('zoomed')
关于python - 如何在不隐藏任务栏的情况下全屏显示 matplotlib 屏幕 - Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68561198/