matplotlib 子圖的常用 xlabel/ylabel

| | | | | | |

我有以下情節:

fig,ax = plt.subplots(5,2,sharex=True,sharey=True,figsize=fig_size) 

現在我想給這個圖提供常見的 x 軸標籤和 y 軸標籤。對於“共同”,我的意思是在整個子圖網格下方應該有一個大的 x 軸標籤,右邊應該有一個大的 y 軸標籤。我在 plt.subplots 的文檔中找不到任何關於此的內容,我的谷歌搜索建議我需要先製作一個大的 plt.subplot(111) - 但是我如何使用 plt.subplots 將我的 5*2 子圖放入其中?

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

News


Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method