File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -408,20 +408,25 @@ def remove_bools(kwargs):
408
408
return new_kwargs
409
409
410
410
411
- def check_figures_equal (* , result_dir = "result_images" , tol = 0.0 ):
411
+ def check_figures_equal (* , tol = 0.0 , result_dir = "result_images" ):
412
412
"""
413
413
Decorator for test cases that generate and compare two figures.
414
414
415
415
The decorated function must take two arguments, *fig_ref* and *fig_test*,
416
416
and draw the reference and test images on them. After the function
417
417
returns, the figures are saved and compared.
418
418
419
+ This decorator is practically identical to matplotlib's check_figures_equal
420
+ function, but adapted for PyGMT figures. See also the original code at
421
+ https://matplotlib.org/3.3.1/api/testing_api.html#
422
+ matplotlib.testing.decorators.check_figures_equal
423
+
419
424
Parameters
420
425
----------
421
- result_dir : str
422
- The directory where the figures will be stored.
423
426
tol : float
424
427
The RMS threshold above which the test is considered failed.
428
+ result_dir : str
429
+ The directory where the figures will be stored.
425
430
426
431
Examples
427
432
--------
You can’t perform that action at this time.
0 commit comments