主頁(yè) > 知識(shí)庫(kù) > python 實(shí)現(xiàn)圖與圖之間的間距調(diào)整subplots_adjust

python 實(shí)現(xiàn)圖與圖之間的間距調(diào)整subplots_adjust

熱門標(biāo)簽:硅谷的囚徒呼叫中心 呼叫中心市場(chǎng)需求 企業(yè)做大做強(qiáng) 百度AI接口 電話運(yùn)營(yíng)中心 語(yǔ)音系統(tǒng) 客戶服務(wù) Win7旗艦版

如下所示:

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è)參考,也希望大家多多支持腳本之家。

您可能感興趣的文章:
  • Python tkinter布局與按鈕間距設(shè)置方式
  • Python數(shù)據(jù)分析matplotlib設(shè)置多個(gè)子圖的間距方法
  • matplotlib調(diào)整子圖間距,調(diào)整整體空白的方法
  • matplotlib subplots 調(diào)整子圖間矩的實(shí)例

標(biāo)簽:喀什 山西 安康 海南 濟(jì)南 崇左 山西 長(zhǎng)沙

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《python 實(shí)現(xiàn)圖與圖之間的間距調(diào)整subplots_adjust》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266