Matplolib subplots_adjust()解析

Matplolib subplots_adjust()解析

用python画图时,用到了这个函数调整子图间的距离,这里记录一下,以防丢失。

matplotlib.pyplot.subplots_adjust(*args, **kwargs)
subplots_adjust(left=None, bottom=None, right=None, top=None,
                wspace=None, hspace=None)

left  = 0.125  # 子图(subplot)距画板(figure)左边的距离
right = 0.9    # 右边
bottom = 0.1   # 底部
top = 0.9      # 顶部
wspace = 0.2   # 子图水平间距
hspace = 0.2   # 子图垂直间距

在这里插入图片描述

参考

https://blog.csdn.net/claroja/article/details/73895363

发布了131 篇原创文章 · 获赞 6 · 访问量 6919

猜你喜欢

转载自blog.csdn.net/Orientliu96/article/details/105139358
今日推荐