A notebook to plot a histogram of the number of out of contact hours each student self reported.
In [1]:
import matplotlib.pyplot as plt
%matplotlib inline
In [2]:
data = [
3,
7.5,
2.5,
2,
2.5,
3,
4,
1,
4,
4,
2,
2.5,
1.5,
1,
0,
2.5,
1,
3.5,
2,
5,
2,
4.5,
2,
1.5,
7,
2,
2.5,
3,
0,
]
In [3]:
plt.figure()
plt.hist(data, bins=15)
plt.title("Number of non-contact hours")
plt.xlabel("Hours")
plt.ylabel("Frequency")
plt.savefig("plot.pdf", transparent=True)