Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Example Provided in Documentation Doesn't work #8

Open
mahmouddaif opened this issue Jul 22, 2022 · 1 comment
Open

The Example Provided in Documentation Doesn't work #8

mahmouddaif opened this issue Jul 22, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@mahmouddaif
Copy link

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")
@MainRo
Copy link
Member

MainRo commented Sep 26, 2022

yes, I need to update the readme and the documentation. The examples have been updated when we changed the internal representation.

@MainRo MainRo added the documentation Improvements or additions to documentation label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants