Python to extract sample data and graph the results using NumPy and Matplotlib