How do you change the size of figures drawn with matplotlib?

后端 未结 19 3004
忘掉有多难
忘掉有多难 2020-11-21 06:01

How do you change the size of figure drawn with matplotlib?

19条回答
  •  死守一世寂寞
    2020-11-21 06:45

    This resizes the figure immediately even after the figure has been drawn (at least using Qt4Agg/TkAgg - but not MacOSX - with matplotlib 1.4.0):

    matplotlib.pyplot.get_current_fig_manager().resize(width_px, height_px)
    

提交回复
热议问题