python - testing the output of seaborn figure level plots - Stack Overflow

时间: 2025-01-06 admin 业界

I'm writing a piece of code involving data displaying with seaborn. I would like to develop some testing units to test that the output of figure level plots are properly generated.

I can test that the figure file is created, but how can I check that the output is the correct one? My idea would be to use a standard dataset and compare the output figure with a reference one. But how can I compare the two plots? I can calculate the checksum of the output figure and of the reference one, is this test accurate?

Thanks for your help!