Going through the histogram tutorial
x = np.random.randn(10)
data_hist = [go.Histogram(x=x)]
How do I get the y values for the bins in x? data_hist only has x values (bin centers).
Going through the histogram tutorial
x = np.random.randn(10)
data_hist = [go.Histogram(x=x)]
How do I get the y values for the bins in x? data_hist only has x values (bin centers).
Came across this, saw it doesn’t have an answer…
To my understand, there are no y-values in the plotly element, as the x-values are used to calculate and create the histogram on the fly in the browser. The y values are not explicitly saved (although I would like to find a way to plot my histogram like that).