如何将熊猫图中的标题移出绘图框?

问题描述 投票:0回答:1

当我在 Panda 中使用plot(subplots = True)时,我面临标题遮挡图表的问题。这就是我现在得到的:

绘图输出

如果您能帮我将列标题移到每个子图的顶部,我将不胜感激。谢谢你。

pandas matplotlib
1个回答
0
投票

plt.legend(loc='upper right', bbox_to_anchor=(1,1))
plt.tight_layout()
之前
plt.show()

plt.legend(loc='upper right', bbox_to_anchor=(1,1))
plt.tight_layout()
plt.show()
© www.soinside.com 2019 - 2024. All rights reserved.