ui.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:keras-utilities 作者: cbaziotis 项目源码 文件源码
def move_figure(f, x, y):
    """Move figure's upper left corner to pixel (x, y)"""
    backend = matplotlib.get_backend()
    if backend == 'TkAgg':
        f.canvas.manager.window.wm_geometry("+%d+%d" % (x, y))
    elif backend == 'WXAgg':
        f.canvas.manager.window.SetPosition((x, y))
    else:
        # This works for QT and GTK
        # You can also use window.setGeometry
        f.canvas.manager.window.move(x, y)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号