Changing size of matplotlib subplots

你离开我真会死。 提交于 2019-12-02 01:33:26

The subplots are shrunk such that their aspect is equal. This seems to be desired; and thus it is not really clear what "bigger" refers to.

You can still make the figure larger, e.g.

plt.figure(1, figsize=(12,2))

and then adjust the margins and spacings using plt.subplots_adjust.

You can also let the axes scale and only set the equal aspect to the data,

plt.gca().set_aspect('equal', adjustable='datalim')

Finally plotting the subplots beneath each other makes them bigger as well. So you might use plt.subplot(211) and plt.subplot(212).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!