hv.Bars 中的 xticks 绘图显示不正确

问题描述

我试图将 hv.BarsPlotly 一起使用,但我的情节上的 xticks 被切断了。我该如何解决这个问题?

enter image description here

解决方法

对于那些感兴趣的人,我终于通过添加一个改变边距属性的钩子解决了这个问题:

def hook(plot,element):
    plot.handles["layout"]["margin"]["l"] = 150 
    plot.handles["layout"]["margin"]["b"] = 150

关于如何使用钩子的文档是 here