Plotly python how to plot histogram in Root style?

  histogram, plotly, python

I want to make a histogram with this style

Histogram made with Root

but using plotly in Python. I.e. I want to merge the bars and plot only the contour. I am using this code:

import plotly.graph_objects as go

import numpy as np

x = np.random.randn(500)
fig = go.Figure(data=[go.Histogram(x=x)])
fig.show()

I have been looking for examples on how to do this but could not find.

Source: Python Questions

LEAVE A COMMENT