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

Adjusting the bin size of plots #46

Closed
Siinan29 opened this issue Dec 6, 2023 · 1 comment
Closed

Adjusting the bin size of plots #46

Siinan29 opened this issue Dec 6, 2023 · 1 comment

Comments

@Siinan29
Copy link

Siinan29 commented Dec 6, 2023

Is it possible to adjust the bin size of the histograms?

@erdogant
Copy link
Owner

erdogant commented Dec 8, 2023

This was the only parameter that was not adjustable. I also changed that now.
The bar_properties can be set based on all known properties

from distfit import distfit
import numpy as np
X = np.random.normal(0, 2, 10000)

dfit = distfit()
dfit.fit_transform(X)
dfit.plot(bar_properties={'width':0.1})

update to the latest version with: pip install -U distfit

@erdogant erdogant closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants