matplotlib.pyplot.subplots_adjust(
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 between subplots,
# as a fraction of the average axis width
hspace = 0.2 # the amount of height reserved between subplots,
# as a fraction of the average axis height
)
# 使用数组方式指定子图
fig, axes = plt.subplots(1, 2, sharey = True)
sns.boxplot(y = ccss.index1a, ax = axes[0])
sns.boxplot(y = ccss.index1b, ax = axes[1])
# 使用数组方式指定子图
fig, axes = plt.subplots(1, 2, sharey = True)
# 进一步设定图形格式细节
plt.subplots_adjust(top = 0.7, wspace = 0.1)
sns.boxplot(y = ccss.index1a, ax = axes[0])
sns.boxplot(y = ccss.index1b, ax = axes[1])
plt.annotate('现状指数和预期指数的对比', xy = (-1.3, 220),
annotation_clip = False, size = 20)