Skip to content

Commit e1f61e7

Browse files
committed
Update plotHist.py
1 parent 5aa6186 commit e1f61e7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

plotHist.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# plot an histogram of binomial distributed numbers
2+
3+
import numpy
4+
import matplotlib.pyplot as plt
5+
6+
randNumbers = numpy.random.binomial(1000, .75, 5000)
7+
8+
plt.hist(randNumbers,100)
9+
plt.title("Histogram of randomly choosen binomial numbers")
10+
plt.xlabel("range")
11+
plt.show()

0 commit comments

Comments
 (0)