Resize a figure automatically in matplotlib

后端 未结 6 878
滥情空心
滥情空心 2021-01-31 02:05

Is there a way to automatically resize a figure to properly fit contained plots in a matplotlib/pylab image?

I\'m creating heatmap (sub)plots that differ in aspect rat

6条回答
  •  太阳男子
    2021-01-31 03:06

    Do you mean changing the size of the image or the area that is visable within a plot?

    The size of a figure can be set with Figure.set_figsize_inches. Also the SciPy Cookbook has an entry on changing image size which contains a section about multiple images per figure.

    Also take a look at this question.

提交回复
热议问题