Skip to content

The Example Provided in Documentation Doesn't work #8

@mahmouddaif

Description

@mahmouddaif

Hello, for your reference, the example provided in the documentation for plotting a histogram doesn't work.
I had to modify it as follows:

hist = distogram.histogram(h)
hist =(hist[0],  hist[1][0:len(hist[0])])
df_hist = pd.DataFrame(np.array(hist).T, columns=["count", "bin"])
print(df_hist)
fig = px.bar(df_hist, x="bin", y="count", title="distogram")
fig.update_layout(height=300)
fig.write_image("hist.png")

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions