如何避免 pandas 中直方图子图中的图标题和轴标题重叠?
How to avoid overlapping between plot titles and axis titles in histogram subplots in pandas?
我在 pandas 中制作了这个情节:
我想在图的标题和后面的图的轴之间增加 space,这样它们就不会重叠。我已经尝试了 Improve subplot size/spacing with many subplots in matplotlib 问题的解决方案,但其中 none 对我的情节没有任何影响。
你可以在绘制所有图形后使用plt.tight_layout()
。这避免了手动调整间距。
我在 pandas 中制作了这个情节:
我想在图的标题和后面的图的轴之间增加 space,这样它们就不会重叠。我已经尝试了 Improve subplot size/spacing with many subplots in matplotlib 问题的解决方案,但其中 none 对我的情节没有任何影响。
你可以在绘制所有图形后使用plt.tight_layout()
。这避免了手动调整间距。