【发布时间】:2020-01-10 16:57:52
【问题描述】:
我的代码:
import matplotlib.pyplot as plt
fig, axs = plt.subplots(2, sharey=False)
axs[0].plt(stuff)
axs[1].plt(stuff)
我试过了:
plt.yticks(fontsize=15)
和
plt.tick_params(axis='both', which='major', labelsize=15)
它们都改变了下图中 ytick 标签的大小,但上图保持不变。我一直无法抓住上面的子图 ytick 标签句柄。
【问题讨论】:
-
ax[0].tick_params
标签: matplotlib subplot