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

Get images function #193

Closed nkorinek closed 4 years ago

nkorinek commented 4 years ago

Added a method named get_plot_image() that will return the images stored in a matplotcheck RasterTester obejct, and tests for that function. @lwasser

codecov[bot] commented 4 years ago

Codecov Report

Merging #193 into master will increase coverage by 0.21%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #193      +/-   ##
==========================================
+ Coverage   69.52%   69.74%   +0.21%     
==========================================
  Files          17       17              
  Lines        1549     1560      +11     
==========================================
+ Hits         1077     1088      +11     
  Misses        472      472              

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5b2270f...c0d74ac. Read the comment docs.

nkorinek commented 4 years ago

@lwasser should be good to merge!

lwasser commented 4 years ago

@nkorinek to clarify this is a method correct? :) just want to ensure we are keeping terms straight... but i'm excited to have a look at it... heading off to class now!

nkorinek commented 4 years ago

@lwasser good catch, it is a method, not a function...oops! Updated the comment to reflect that

lwasser commented 4 years ago

@nkorinek merging this!!! thank you!