python 實(shí)現(xiàn)圖與圖之間的間距調(diào)整subplots_adjust
發(fā)布日期:2022-05-12 14:11 | 文章來源:站長之家
如下所示:
plt.subplots_adjust(left=None,bottom=None,right=None,top=None,wspace=0.15,hspace=0.15)
圖與圖之間的間距調(diào)整
wspace=0.15,hspace=0.15
補(bǔ)充:python如何調(diào)整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
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持本站。
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
相關(guān)文章