earthlab / matplotcheck

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)!
https://matplotcheck.readthedocs.io
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

histogram tests: data #124

Closed lwasser closed 4 years ago

lwasser commented 5 years ago

INstructor helper content - let's think about this . more

  1. 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.
  2. we can make the function "smart" to test for how many columns are in the data.
lwasser commented 4 years ago

also addressed in #143

lwasser commented 4 years ago

closing because we do test for bin heights or the data values... and we are not going to implement the smart helper for the time being. ...