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
以上為個人經(jīng)驗(yàn),希望能給大家一個參考,也希望大家多多支持腳本之家。
標(biāo)簽:呂梁 阿里 株洲 銅川 黑龍江 常德 潛江 通遼
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《python 實(shí)現(xiàn)圖與圖之間的間距調(diào)整subplots_adjust》,本文關(guān)鍵詞 python,實(shí)現(xiàn),圖,與,圖之,間的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。