新闻动态

python 实现图与图之间的间距调整subplots_adjust

发布日期:2022-05-12 14:11 | 文章来源:站长之家

如下所示:

plt.subplots_adjust(left=None,bottom=None,right=None,top=None,wspace=0.15,hspace=0.15)

图与图之间的间距调整

wspace=0.15,hspace=0.15

补充:python如何调整subplot的间距

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots_adjust.html

plt.subplots_adjust(left=None, bottom=None, right=None, top=None,
 wspace=None, hspace=None)
left  = 0.125  # the left side of the subplots of the figure
right = 0.9 # the right side of the subplots of the figure
bottom = 0.1# the bottom of the subplots of the figure
top = 0.9# the top of the subplots of the figure
wspace = 0.2# the amount of width reserved for blank space between subplots,
# expressed as a fraction of the average axis width
hspace = 0.2# the amount of height reserved for white space between subplots,
# expressed as a fraction of the average axis height

以上为个人经验,希望能给大家一个参考,也希望大家多多支持本站。

海外稳定服务器

版权声明:本站文章来源标注为YINGSOO的内容版权均为本站所有,欢迎引用、转载,请保持原文完整并注明来源及原文链接。禁止复制或仿造本网站,禁止在非www.yingsoo.com所属的服务器上建立镜像,否则将依法追究法律责任。本站部分内容来源于网友推荐、互联网收集整理而来,仅供学习参考,不代表本站立场,如有内容涉嫌侵权,请联系alex-e#qq.com处理。

相关文章

实时开通

自选配置、实时开通

免备案

全球线路精选!

全天候客户服务

7x24全年不间断在线

专属顾问服务

1对1客户咨询顾问

在线
客服

在线客服:7*24小时在线

客服
热线

400-630-3752
7*24小时客服服务热线

关注
微信

关注官方微信
顶部