Retrieving Bin information from Histogram

When plotting a histogram, I am allowing plotly to determine the size of the bins for me based on the number of bins I wish to plot. Is there a way to retrieve this information after the fact? For instance the hover data will show which bin a particular bar falls into such as β€˜60 - 65’. How can I gain access to this information once a histogram has been plotted?

Hi @DarMar, it’s not possible retrieve binning information. If you really need them, use numpy.histogram and plot the results in a plotly bar chart.

2 Likes