Open zmaalick opened 4 years ago
There are two functions in this module: vector_plot and plot_regress. The aim is to compare the figure created by these routines (without saving to disk) to a KGO image using the imagehash library.
Steps:
Each of these will have several images to be tested, as there are multiple options to be tested, In the case of visualiastion,py significant more thought is needed to make this code safe (checking u and v in correct order, failing if it can't find a single X axis not printing an error, etc. This (and the tests for the new checks) should be on a different ticket
The approach iris uses for comparing graphics is here https://github.com/SciTools/iris/blob/077df3ec15530255df80c2fc330eb21998e24769/lib/iris/tests/__init__.py#L823