当我使用pyplot创建新的图形时,它会自动打开在我的屏幕左上角。我想让它在另一个位置打开(例如在屏幕右上角)。 到目前为止,我一直在使用以下方法来更改位置:
import matplotlib.pyplot as plt
plt.figure() # opens on the top left
(x,y,w,h) = ... # The desired position
plt.get_current_fig_manager().window.setGeometry(x,y,w,h)
有没有办法将所需位置设置为Matplotlib的默认值? 我查找了matplotlibrc文件,但找不到任何能帮助我的东西 ... 有什么想法吗?
matplotlibrc
文件中的原因。请参见 https://dev59.com/cms05IYBdhLWcg3wGuKd?rq=1 - tmdavison