Skip to content

Commit 0bc3748

Browse files
committed
fix: remove density=True param in readme quickstart because it's the default now
1 parent c5cedcc commit 0bc3748

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ import numpy as np
3535
import matplotlib.pyplot as plt
3636
from khisto.matplotlib import hist
3737

38+
# Generate 10,000 samples from a Normal distribution
39+
normal_data = np.random.normal(size=10000)
40+
41+
# Plot an adaptive histogram
42+
n, bins, patches = hist(normal_data)
43+
plt.show()
44+
3845
# Generate 10,000 samples from a Pareto distribution
3946
long_tail_data = np.random.pareto(3, size=10000)
4047

4148
# Plot an adaptive histogram on logarithmic axes.
42-
n, bins, patches = hist(long_tail_data, density=True)
49+
n, bins, patches = hist(long_tail_data)
4350
plt.xscale("symlog")
4451
plt.yscale("log")
4552
plt.show()
46-
47-
# Generate 10,000 samples from a Normal distribution
48-
normal_data = np.random.normal(size=10000)
49-
50-
# Plot an adaptive histogram
51-
n, bins, patches = hist(normal_data, density=True)
52-
plt.show()
5353
```
5454

5555
## Development

0 commit comments

Comments
 (0)