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 = [
    4.5,
    1.5,
    2.5,
    3,
    0,
    3,
    3,
    2.5,
    2,
    1.5,
    2,
    1,
    1.5,
    2,
    2.5,
    0,
    2.5,
    2.5,
    .5,
    0,
    1,
    1.25,
    1.5,
    1.5,
    1.5,
    4,
    .5,
    .5,
]

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)