@@ -59,6 +59,15 @@ not need to be installed, but Matplotlib should be)::
59
59
60
60
.. _command-line parameters :http://doc.pytest.org/en/latest/usage.html
61
61
62
+ Viewing image test output
63
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
64
+
65
+ The output of:ref: `image-based <image-comparison >` tests is stored in a
66
+ ``result_images `` directory. These images can be compiled in an HTML page using the
67
+ ``visualize_tests `` tool::
68
+
69
+ python tools/visualize_tests.py
70
+
62
71
63
72
Writing a simple test
64
73
---------------------
@@ -94,7 +103,9 @@ For numpy's default random number generator use::
94
103
95
104
and then use ``rng `` when generating the random numbers.
96
105
97
- The seed is John Hunter's birthday.
106
+ The seed is:ref: `John Hunter's <project_history >` birthday.
107
+
108
+ .. _image-comparison :
98
109
99
110
Writing an image comparison test
100
111
--------------------------------
@@ -128,6 +139,10 @@ texts (labels, tick labels, etc) are not really part of what is tested, use
128
139
``remove_text=True `` as this will lead to smaller figures and reduce possible
129
140
issues with font mismatch on different platforms.
130
141
142
+
143
+ Compare two methods of creating an image
144
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
145
+
131
146
Baseline images take a lot of space in the Matplotlib repository.
132
147
An alternative approach for image comparison tests is to use the
133
148
`~matplotlib.testing.decorators.check_figures_equal ` decorator, which should be