janosh/pymatviz

Add image comparison tests for all `matplotlib` plots

janosh opened this issue · 1 comments

As in #20 (tests/test_struct_vis.py), use matplotlib.testing.compare.compare_images() to test all functions that generate matplotlib figures.

Maybe actually not worth the trouble. Makes tests very brittle to the point where the image diff tolerance needs to be so high that it seems less valuable. See 2882acf where diff RMS was bumped from 0.8 to 100.