A python package for checking and testing matplotlib plots. We use this for autograding student assignments but there are many other potential use cases including package testing (for packages with plots)!
[x] Start by creating another method that will check that the bin height for each bin is correct. and then write tests for that too.
INstructor helper content - let's think about this . more
For histogram data tests. What if we have a wrapper that accepts a mpl plot. and returns the data for a histogram (i could see us doing this for other plot types as well). This might entail pulling out some of the code from the assert statements into helper functions that grab the data from the plot.
we can make the function "smart" to test for how many columns are in the data.
INstructor helper content - let's think about this . more