[問題] subplot title與xlabel重疊

看板Python作者 (HI)時間6年前 (2018/05/04 22:59), 編輯推噓0(002)
留言2則, 2人參與, 6年前最新討論串1/1
各位大大好 我用以下指令要繪製多個子圖的圖形 self.f = Figure(figsize=(200,10), dpi=100) self.canvas2 = FigureCanvasTkAgg(self.f, self) self.canvas2.show() self.canvas2._tkcanvas.pack(side=tk.TOP, fill=tk.BOTH, expand=True) self.fig1 = self.f.add_subplot(421) self.fig2 = self.f.add_subplot(422) ... 但發現上一個圖形的xlabel會和下一個圖形的title重疊 請問可以用什麼指令解決重疊的問題呢 或是怎麼調整兩個子圖形上下間距呢 謝謝解答囉! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.192.242.41 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1525445995.A.DF8.html

05/05 13:31, 6年前 , 1F
matplotlib 的話,subplots_adjust 或 tight_layout
05/05 13:31, 1F

05/06 17:43, 6年前 , 2F
感謝喔!
05/06 17:43, 2F
文章代碼(AID): #1Qx7Lhtu (Python)