1

我需要得到标准化的直方图。所以在丹佛笔记本中,我尝试了这样的语法:

s = new dfd.Series([1, 3, 2, 2, 2, 6, 10, 10, 34, 40, 51, 90, 90, 90, 90, 1, 3, 2, 2, 2, 6, 10, 10, 34, 40, 51, 90, 90, 90, 90, 1, 3, 2, 2, 2, 6, 10, 10, 34, 40, 51, 90, 90, 90, 90, 1, 3, 2, 2, 2, 6, 10, 10, 34, 40, 51, 90, 90, 90, 90, 1, 3, 2, 2, 2, 6, 10, 10, 34, 40, 51, 90, 90, 90, 90, 75]) 
s.plot(this_div()).hist({histnorm: 'probability', layout: {title: 'Normalized Histogram'}})

但看起来 danfo.js 忽略了Plotlyhistnorm跟踪属性

所以问题是:是否可以将 Plotly 跟踪属性与 danfojs 的图一起使用,如果可以,那么正确的语法是什么?

4

0 回答 0