我试图将 hv.Bars 与 Plotly 一起使用,但我的情节上的 xticks 被切断了。我该如何解决这个问题?
hv.Bars
Plotly
对于那些感兴趣的人,我终于通过添加一个改变边距属性的钩子解决了这个问题:
def hook(plot,element): plot.handles["layout"]["margin"]["l"] = 150 plot.handles["layout"]["margin"]["b"] = 150
关于如何使用钩子的文档是 here。