diff --git a/doc/api/next_api_changes/behavior/29827-ES.rst b/doc/api/next_api_changes/behavior/29827-ES.rst
new file mode 100644
index 000000000000..d25dfa0c6574
--- /dev/null
+++ b/doc/api/next_api_changes/behavior/29827-ES.rst
@@ -0,0 +1,6 @@
+``matplotlib.testing.check_figures_equal`` defaults to PNG only
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+In most cases, checking that figures are equal with `.check_figures_equal` does not
+depend on the file format. Consequently, the *extensions* parameter now defaults to
+``['png']`` instead of ``['png', 'pdf', 'svg']``, reducing default test requirements.
diff --git a/doc/devel/testing.rst b/doc/devel/testing.rst
index 8c4ff9a62c43..15e73514e8ff 100644
--- a/doc/devel/testing.rst
+++ b/doc/devel/testing.rst
@@ -191,7 +191,7 @@ vs plotting the circle using the parametric equation of a circle ::
@check_figures_equal()
def test_parametric_circle_plot(fig_test, fig_ref):
- xo, yo= (.5, .5)
+ xo = yo = 0.5
radius = 0.4
ax_test = fig_test.subplots()
@@ -205,7 +205,7 @@ vs plotting the circle using the parametric equation of a circle ::
ax_ref.add_artist(red_circle_ref)
for ax in [ax_ref, ax_test]:
- ax.set(xlim=(0,1), ylim=(0,1), aspect='equal')
+ ax.set(xlim=(0, 1), ylim=(0, 1), aspect='equal')
Both comparison decorators have a tolerance argument ``tol`` that is used to specify the
tolerance for difference in color value between the two images, where 255 is the maximal
diff --git a/lib/matplotlib/testing/decorators.py b/lib/matplotlib/testing/decorators.py
index af9ef48d66cc..17509449e768 100644
--- a/lib/matplotlib/testing/decorators.py
+++ b/lib/matplotlib/testing/decorators.py
@@ -347,7 +347,7 @@ def image_comparison(baseline_images, extensions=None, tol=0,
savefig_kwargs=savefig_kwarg, style=style)
-def check_figures_equal(*, extensions=("png", "pdf", "svg"), tol=0):
+def check_figures_equal(*, extensions=("png", ), tol=0):
"""
Decorator for test cases that generate and compare two figures.
@@ -360,8 +360,13 @@ def check_figures_equal(*, extensions=("png", "pdf", "svg"), tol=0):
Parameters
----------
- extensions : list, default: ["png", "pdf", "svg"]
- The extensions to test.
+ extensions : list, default: ["png"]
+ The extensions to test. Supported extensions are "png", "pdf", "svg".
+
+ Testing with the one default extension is sufficient if the output is not
+ format dependent, e.g. if you test that a ``bar()`` plot yields the same
+ result as some manually placed Rectangles. You should use all extensions
+ if a renderer property is involved, e.g. correct alpha blending.
tol : float
The RMS threshold above which the test is considered failed.
diff --git a/lib/matplotlib/tests/baseline_images/test_arrow_patches/fancyarrow_test_image.pdf b/lib/matplotlib/tests/baseline_images/test_arrow_patches/fancyarrow_test_image.pdf
deleted file mode 100644
index 124014fc4869..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_arrow_patches/fancyarrow_test_image.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_arrow_patches/fancyarrow_test_image.svg b/lib/matplotlib/tests/baseline_images/test_arrow_patches/fancyarrow_test_image.svg
deleted file mode 100644
index 6fb9d9d64991..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_arrow_patches/fancyarrow_test_image.svg
+++ /dev/null
@@ -1,2891 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.pdf b/lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.pdf
deleted file mode 100644
index 42652378a5d0..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.svg b/lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.svg
deleted file mode 100644
index e87ecb06a6bd..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.svg
+++ /dev/null
@@ -1,763 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf
deleted file mode 100644
index d034617daa24..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg
deleted file mode 100644
index 7b05c11742e5..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg
+++ /dev/null
@@ -1,723 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf
deleted file mode 100644
index 2d9006680410..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg
deleted file mode 100644
index d3260ae11ee6..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg
+++ /dev/null
@@ -1,753 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf
deleted file mode 100644
index c34dddea28c9..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg
deleted file mode 100644
index 6774f852dc9e..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg
+++ /dev/null
@@ -1,397 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.pdf b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.pdf
deleted file mode 100644
index c424bc5e982f..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.svg b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.svg
deleted file mode 100644
index c3a3cda7a9a0..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.svg
+++ /dev/null
@@ -1,535 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_basic.pdf b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_basic.pdf
deleted file mode 100644
index 2058620b35d2..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_basic.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_basic.svg b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_basic.svg
deleted file mode 100644
index 361aa8826a73..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_basic.svg
+++ /dev/null
@@ -1,1234 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_limits.pdf b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_limits.pdf
deleted file mode 100644
index 503bdf11dabc..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_limits.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_limits.svg b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_limits.svg
deleted file mode 100644
index d7f2f4a27f92..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_limits.svg
+++ /dev/null
@@ -1,1702 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.pdf b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.pdf
deleted file mode 100644
index c145cbbeb74d..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.svg b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.svg
deleted file mode 100644
index d28b10e07376..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.svg
+++ /dev/null
@@ -1,2391 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_zorder.pdf b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_zorder.pdf
deleted file mode 100644
index 10773bfe9083..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_zorder.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_zorder.svg b/lib/matplotlib/tests/baseline_images/test_axes/errorbar_zorder.svg
deleted file mode 100644
index 5e25759468d1..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/errorbar_zorder.svg
+++ /dev/null
@@ -1,1015 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/eventplot.pdf b/lib/matplotlib/tests/baseline_images/test_axes/eventplot.pdf
deleted file mode 100644
index e98c3f6d6b34..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/eventplot.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/eventplot.svg b/lib/matplotlib/tests/baseline_images/test_axes/eventplot.svg
deleted file mode 100644
index dcc145527b7c..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/eventplot.svg
+++ /dev/null
@@ -1,2628 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate.pdf b/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate.pdf
deleted file mode 100644
index 6a624dea46c8..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate.svg b/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate.svg
deleted file mode 100644
index 2e77acfd7601..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate.svg
+++ /dev/null
@@ -1,1267 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_decreasing.pdf b/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_decreasing.pdf
deleted file mode 100644
index 4042ec1c9fba..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_decreasing.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_decreasing.svg b/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_decreasing.svg
deleted file mode 100644
index 857e8c92f833..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_decreasing.svg
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_nan.pdf b/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_nan.pdf
deleted file mode 100644
index dffa63bd7972..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_nan.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_nan.svg b/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_nan.svg
deleted file mode 100644
index a200927ef2fe..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/fill_between_interpolate_nan.svg
+++ /dev/null
@@ -1,352 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_001.pdf b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_001.pdf
deleted file mode 100644
index 43a2c30a0368..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_001.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_001.svg b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_001.svg
deleted file mode 100644
index 9b2b29fd4e98..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_001.svg
+++ /dev/null
@@ -1,592 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_002.pdf b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_002.pdf
deleted file mode 100644
index 3465f1bd42d0..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_002.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_002.svg b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_002.svg
deleted file mode 100644
index 03adfb5247d3..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_002.svg
+++ /dev/null
@@ -1,905 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_003.pdf b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_003.pdf
deleted file mode 100644
index f071d453dc7b..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_003.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_003.svg b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_003.svg
deleted file mode 100644
index 9aa79e5a566f..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_003.svg
+++ /dev/null
@@ -1,905 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_004.pdf b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_004.pdf
deleted file mode 100644
index ad0fa75eafae..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_004.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_004.svg b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_004.svg
deleted file mode 100644
index d4c6c2b72e4c..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_004.svg
+++ /dev/null
@@ -1,796 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_005.pdf b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_005.pdf
deleted file mode 100644
index 21f9705474e8..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_005.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_005.svg b/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_005.svg
deleted file mode 100644
index d1eea00c3208..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/formatter_ticker_005.svg
+++ /dev/null
@@ -1,798 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist2d.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist2d.pdf
deleted file mode 100644
index 8343cc2efd97..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist2d.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist2d.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist2d.svg
deleted file mode 100644
index 025441b800db..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist2d.svg
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist2d_transpose.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist2d_transpose.pdf
deleted file mode 100644
index d7a58f772a40..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist2d_transpose.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist2d_transpose.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist2d_transpose.svg
deleted file mode 100644
index 8111cb56486a..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist2d_transpose.svg
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_log.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_log.pdf
deleted file mode 100644
index 9c6e73351b0d..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_log.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_log.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_log.svg
deleted file mode 100644
index d0825b425ba3..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_log.svg
+++ /dev/null
@@ -1,468 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_offset.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_offset.pdf
deleted file mode 100644
index 45cc03fb511f..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_offset.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_offset.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_offset.svg
deleted file mode 100644
index e3865b8cf8bf..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_offset.svg
+++ /dev/null
@@ -1,646 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.pdf
deleted file mode 100644
index 8c1e835c2729..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.svg
deleted file mode 100644
index c5bcbc473301..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.svg
+++ /dev/null
@@ -1,1485 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_normed.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_normed.pdf
deleted file mode 100644
index c63109d24640..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_normed.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_normed.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_normed.svg
deleted file mode 100644
index a48c7fdd2eda..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_normed.svg
+++ /dev/null
@@ -1,657 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_step.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_step.pdf
deleted file mode 100644
index a9e7412b235b..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_step.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_step.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_step.svg
deleted file mode 100644
index 19e4ea8a8969..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_step.svg
+++ /dev/null
@@ -1,553 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled.pdf
deleted file mode 100644
index 4c55a0fa010d..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled.svg
deleted file mode 100644
index 5be44c0cf6b7..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled.svg
+++ /dev/null
@@ -1,591 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled_alpha.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled_alpha.pdf
deleted file mode 100644
index 182020177eda..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled_alpha.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled_alpha.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled_alpha.svg
deleted file mode 100644
index 7d595a98a5ef..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_stepfilled_alpha.svg
+++ /dev/null
@@ -1,591 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_weights.pdf b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_weights.pdf
deleted file mode 100644
index f1c383b62486..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_weights.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_weights.svg b/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_weights.svg
deleted file mode 100644
index 452839806945..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_weights.svg
+++ /dev/null
@@ -1,610 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery.pdf
deleted file mode 100644
index 8a2a4887d2d7..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery.svg
deleted file mode 100644
index 8ae4cdac28a1..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery.svg
+++ /dev/null
@@ -1,987 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_line.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery_line.pdf
deleted file mode 100644
index 9bff9fcd374d..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery_line.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg
deleted file mode 100644
index db71bd78fa57..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg
+++ /dev/null
@@ -1,1407 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales.pdf
deleted file mode 100644
index e0f266c1670c..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales.svg
deleted file mode 100644
index 760903302ecd..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales.svg
+++ /dev/null
@@ -1,3177 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_nans.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_nans.pdf
deleted file mode 100644
index bd4feafd6aa0..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_nans.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_nans.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_nans.svg
deleted file mode 100644
index c52aaf9de094..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_nans.svg
+++ /dev/null
@@ -1,3581 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.pdf
deleted file mode 100644
index 103c8c292503..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg
deleted file mode 100644
index 746e66f65dfb..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg
+++ /dev/null
@@ -1,3420 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_log_scales.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery_log_scales.pdf
deleted file mode 100644
index d2c84bf64c66..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery_log_scales.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_log_scales.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_log_scales.svg
deleted file mode 100644
index 1c1ee14a1282..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_log_scales.svg
+++ /dev/null
@@ -1,6491 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.pdf b/lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.pdf
deleted file mode 100644
index b69860d339e9..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.svg
deleted file mode 100644
index 19730045f101..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.svg
+++ /dev/null
@@ -1,4181 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/mollweide_grid.pdf b/lib/matplotlib/tests/baseline_images/test_axes/mollweide_grid.pdf
deleted file mode 100644
index c9306e718556..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/mollweide_grid.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/mollweide_grid.svg b/lib/matplotlib/tests/baseline_images/test_axes/mollweide_grid.svg
deleted file mode 100644
index 64359dcf6376..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/mollweide_grid.svg
+++ /dev/null
@@ -1,1851 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_baseline.pdf b/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_baseline.pdf
deleted file mode 100644
index 531c9c5e9b3f..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_baseline.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_baseline.svg b/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_baseline.svg
deleted file mode 100644
index ec64d7cdbf4e..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_baseline.svg
+++ /dev/null
@@ -1,3359 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_image.pdf b/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_image.pdf
deleted file mode 100644
index 8f08637012e4..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_image.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_image.svg b/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_image.svg
deleted file mode 100644
index 421dc4448593..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/stackplot_test_image.svg
+++ /dev/null
@@ -1,651 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/twin_axis_locators_formatters.pdf b/lib/matplotlib/tests/baseline_images/test_axes/twin_axis_locators_formatters.pdf
deleted file mode 100644
index f189df616a33..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/twin_axis_locators_formatters.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/twin_axis_locators_formatters.svg b/lib/matplotlib/tests/baseline_images/test_axes/twin_axis_locators_formatters.svg
deleted file mode 100644
index 12763588c0d5..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/twin_axis_locators_formatters.svg
+++ /dev/null
@@ -1,1290 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/vline_hline_zorder.pdf b/lib/matplotlib/tests/baseline_images/test_axes/vline_hline_zorder.pdf
deleted file mode 100644
index e6974a409dca..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_axes/vline_hline_zorder.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_axes/vline_hline_zorder.svg b/lib/matplotlib/tests/baseline_images/test_axes/vline_hline_zorder.svg
deleted file mode 100644
index a2eaa040cbb3..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_axes/vline_hline_zorder.svg
+++ /dev/null
@@ -1,1011 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__add_positions.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__add_positions.pdf
deleted file mode 100644
index c4019065ae7a..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__add_positions.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__add_positions.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__add_positions.svg
deleted file mode 100644
index f2b8d40dced5..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__add_positions.svg
+++ /dev/null
@@ -1,811 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__append_positions.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__append_positions.pdf
deleted file mode 100644
index 3da31c23f37b..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__append_positions.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__append_positions.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__append_positions.svg
deleted file mode 100644
index 9ceeb930cef2..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__append_positions.svg
+++ /dev/null
@@ -1,859 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__default.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__default.pdf
deleted file mode 100644
index 24edb67d2989..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__default.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__default.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__default.svg
deleted file mode 100644
index aac64d958b31..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__default.svg
+++ /dev/null
@@ -1,731 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__extend_positions.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__extend_positions.pdf
deleted file mode 100644
index 350240c3a1ef..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__extend_positions.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__extend_positions.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__extend_positions.svg
deleted file mode 100644
index c4b5c08c50c0..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__extend_positions.svg
+++ /dev/null
@@ -1,844 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_color.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_color.pdf
deleted file mode 100644
index 897d90653212..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_color.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_color.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_color.svg
deleted file mode 100644
index 29a9ad0368b4..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_color.svg
+++ /dev/null
@@ -1,686 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linelength.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linelength.pdf
deleted file mode 100644
index 1de0c4066bc0..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linelength.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linelength.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linelength.svg
deleted file mode 100644
index 90b5fab01765..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linelength.svg
+++ /dev/null
@@ -1,799 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_lineoffset.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_lineoffset.pdf
deleted file mode 100644
index 17ac2ec9a703..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_lineoffset.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_lineoffset.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_lineoffset.svg
deleted file mode 100644
index b8dbf48bce65..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_lineoffset.svg
+++ /dev/null
@@ -1,758 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linestyle.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linestyle.pdf
deleted file mode 100644
index 4a4c75b5a6af..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linestyle.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linestyle.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linestyle.svg
deleted file mode 100644
index 2da07c3d9810..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linestyle.svg
+++ /dev/null
@@ -1,655 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linewidth.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linewidth.pdf
deleted file mode 100644
index 240cf285f2cf..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linewidth.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linewidth.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linewidth.svg
deleted file mode 100644
index d9b33747f360..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_linewidth.svg
+++ /dev/null
@@ -1,734 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_orientation.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_orientation.pdf
deleted file mode 100644
index e8eb805afcfa..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_orientation.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_orientation.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_orientation.svg
deleted file mode 100644
index 6d8187c688ff..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_orientation.svg
+++ /dev/null
@@ -1,686 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_positions.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_positions.pdf
deleted file mode 100644
index 5e7c3569af07..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_positions.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_positions.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_positions.svg
deleted file mode 100644
index e7ba87cd63c7..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__set_positions.svg
+++ /dev/null
@@ -1,803 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation.pdf
deleted file mode 100644
index 78ffdf083661..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation.svg
deleted file mode 100644
index a467edef0196..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation.svg
+++ /dev/null
@@ -1,761 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation__2x.pdf b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation__2x.pdf
deleted file mode 100644
index aa7db682592b..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation__2x.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation__2x.svg b/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation__2x.svg
deleted file mode 100644
index 0f7bde1e09d8..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_collections/EventCollection_plot__switch_orientation__2x.svg
+++ /dev/null
@@ -1,781 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_figure/figure_legend.pdf b/lib/matplotlib/tests/baseline_images/test_figure/figure_legend.pdf
deleted file mode 100644
index 4c9d292ad180..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_figure/figure_legend.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_figure/figure_legend.svg b/lib/matplotlib/tests/baseline_images/test_figure/figure_legend.svg
deleted file mode 100644
index d3be94a5e07c..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_figure/figure_legend.svg
+++ /dev/null
@@ -1,882 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_figure/figure_suptitle.pdf b/lib/matplotlib/tests/baseline_images/test_figure/figure_suptitle.pdf
deleted file mode 100644
index a240dc52d2ed..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_figure/figure_suptitle.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_figure/figure_suptitle.svg b/lib/matplotlib/tests/baseline_images/test_figure/figure_suptitle.svg
deleted file mode 100644
index 04c69d7df02a..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_figure/figure_suptitle.svg
+++ /dev/null
@@ -1,541 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_figure/figure_today.pdf b/lib/matplotlib/tests/baseline_images/test_figure/figure_today.pdf
deleted file mode 100644
index d1909c6c80ee..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_figure/figure_today.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_figure/figure_today.svg b/lib/matplotlib/tests/baseline_images/test_figure/figure_today.svg
deleted file mode 100644
index e94c8e3c72c2..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_figure/figure_today.svg
+++ /dev/null
@@ -1,715 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/fancy.pdf b/lib/matplotlib/tests/baseline_images/test_legend/fancy.pdf
deleted file mode 100644
index b0fb8a4af7f2..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/fancy.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/fancy.svg b/lib/matplotlib/tests/baseline_images/test_legend/fancy.svg
deleted file mode 100644
index 9e56f5ed36bb..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/fancy.svg
+++ /dev/null
@@ -1,776 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto1.pdf b/lib/matplotlib/tests/baseline_images/test_legend/legend_auto1.pdf
deleted file mode 100644
index fef8197061cf..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto1.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto1.svg b/lib/matplotlib/tests/baseline_images/test_legend/legend_auto1.svg
deleted file mode 100644
index 17a7270dc97b..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto1.svg
+++ /dev/null
@@ -1,561 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto2.pdf b/lib/matplotlib/tests/baseline_images/test_legend/legend_auto2.pdf
deleted file mode 100644
index 95642d306bdc..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto2.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto2.svg b/lib/matplotlib/tests/baseline_images/test_legend/legend_auto2.svg
deleted file mode 100644
index 4dbb53e56e0b..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto2.svg
+++ /dev/null
@@ -1,1990 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto3.pdf b/lib/matplotlib/tests/baseline_images/test_legend/legend_auto3.pdf
deleted file mode 100644
index 69c1ffba7a60..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto3.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto3.svg b/lib/matplotlib/tests/baseline_images/test_legend/legend_auto3.svg
deleted file mode 100644
index dcc9d3f83f9a..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/legend_auto3.svg
+++ /dev/null
@@ -1,594 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_expand.pdf b/lib/matplotlib/tests/baseline_images/test_legend/legend_expand.pdf
deleted file mode 100644
index 7db4ea697579..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/legend_expand.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_expand.svg b/lib/matplotlib/tests/baseline_images/test_legend/legend_expand.svg
deleted file mode 100644
index 142da9bd7fe6..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/legend_expand.svg
+++ /dev/null
@@ -1,1135 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.pdf b/lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.pdf
deleted file mode 100644
index a16341c99039..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.svg b/lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.svg
deleted file mode 100644
index d0ee0f63fdf8..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.svg
+++ /dev/null
@@ -1,596 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc1.pdf b/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc1.pdf
deleted file mode 100644
index c7fae8bd6dde..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc1.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc1.svg b/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc1.svg
deleted file mode 100644
index ea371456253f..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc1.svg
+++ /dev/null
@@ -1,470 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc3.pdf b/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc3.pdf
deleted file mode 100644
index 321d75f1ae41..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc3.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc3.svg b/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc3.svg
deleted file mode 100644
index cd5aa2fcef1e..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_legend/scatter_rc3.svg
+++ /dev/null
@@ -1,537 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_patches/clip_to_bbox.pdf b/lib/matplotlib/tests/baseline_images/test_patches/clip_to_bbox.pdf
deleted file mode 100644
index ecff2574e0a5..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_patches/clip_to_bbox.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_patches/clip_to_bbox.svg b/lib/matplotlib/tests/baseline_images/test_patches/clip_to_bbox.svg
deleted file mode 100644
index 9b7644a861c5..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_patches/clip_to_bbox.svg
+++ /dev/null
@@ -1,515 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_axes.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_axes.pdf
deleted file mode 100644
index f56b04c4d3a6..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_axes.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_axes.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_axes.svg
deleted file mode 100644
index cf8b876685f7..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_axes.svg
+++ /dev/null
@@ -1,1250 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_coords.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_coords.pdf
deleted file mode 100644
index c9fa69334e88..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_coords.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_coords.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_coords.svg
deleted file mode 100644
index a2b3a95d136b..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_coords.svg
+++ /dev/null
@@ -1,348 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_negative_rmin.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_negative_rmin.pdf
deleted file mode 100644
index aa98d5bb8cf1..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_negative_rmin.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_negative_rmin.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_negative_rmin.svg
deleted file mode 100644
index 47dd9d1a6792..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_negative_rmin.svg
+++ /dev/null
@@ -1,973 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_rlabel_position.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_rlabel_position.pdf
deleted file mode 100644
index 8e41309e1736..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_rlabel_position.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_rlabel_position.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_rlabel_position.svg
deleted file mode 100644
index 07c6695f7790..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_rlabel_position.svg
+++ /dev/null
@@ -1,687 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_rmin.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_rmin.pdf
deleted file mode 100644
index 8bcbd4b17bcc..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_rmin.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_rmin.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_rmin.svg
deleted file mode 100644
index 347ae67589e6..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_rmin.svg
+++ /dev/null
@@ -1,1012 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_rorigin.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_rorigin.pdf
deleted file mode 100644
index 962f95a40d4f..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_rorigin.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_rorigin.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_rorigin.svg
deleted file mode 100644
index 2048cb1e7f73..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_rorigin.svg
+++ /dev/null
@@ -1,1074 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_position.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_position.pdf
deleted file mode 100644
index f132d8f33262..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_position.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_position.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_position.svg
deleted file mode 100644
index 8dfbb7a36482..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_position.svg
+++ /dev/null
@@ -1,960 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_wedge.pdf b/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_wedge.pdf
deleted file mode 100644
index 0a7c328ac737..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_wedge.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_wedge.svg b/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_wedge.svg
deleted file mode 100644
index d45bf67a02a9..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_polar/polar_theta_wedge.svg
+++ /dev/null
@@ -1,6558 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_skew/skew_axes.pdf b/lib/matplotlib/tests/baseline_images/test_skew/skew_axes.pdf
deleted file mode 100644
index affd68412e62..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_skew/skew_axes.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_skew/skew_axes.svg b/lib/matplotlib/tests/baseline_images/test_skew/skew_axes.svg
deleted file mode 100644
index d5410d62d7b2..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_skew/skew_axes.svg
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_skew/skew_rects.pdf b/lib/matplotlib/tests/baseline_images/test_skew/skew_rects.pdf
deleted file mode 100644
index c16fc9c2d916..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_skew/skew_rects.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_skew/skew_rects.svg b/lib/matplotlib/tests/baseline_images/test_skew/skew_rects.svg
deleted file mode 100644
index ff18e2b4df0b..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_skew/skew_rects.svg
+++ /dev/null
@@ -1,5368 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/black_axes.pdf b/lib/matplotlib/tests/baseline_images/test_spines/black_axes.pdf
deleted file mode 100644
index 96eacb9308d9..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_spines/black_axes.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/black_axes.svg b/lib/matplotlib/tests/baseline_images/test_spines/black_axes.svg
deleted file mode 100644
index 8f7ff932859d..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_spines/black_axes.svg
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.pdf b/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.pdf
deleted file mode 100644
index 309a299edb40..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.svg b/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.svg
deleted file mode 100644
index 4d0bb1aefc81..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.svg
+++ /dev/null
@@ -1,856 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/spines_capstyle.pdf b/lib/matplotlib/tests/baseline_images/test_spines/spines_capstyle.pdf
deleted file mode 100644
index f596d08ce38d..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_spines/spines_capstyle.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/spines_capstyle.svg b/lib/matplotlib/tests/baseline_images/test_spines/spines_capstyle.svg
deleted file mode 100644
index c241158c7fd9..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_spines/spines_capstyle.svg
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.pdf b/lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.pdf
deleted file mode 100644
index 0819ac3993c4..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.svg b/lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.svg
deleted file mode 100644
index 86a79b5fe89d..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.svg
+++ /dev/null
@@ -1,538 +0,0 @@
-
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.pdf b/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.pdf
deleted file mode 100644
index 1b29bdcd1fc3..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.svg b/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.svg
deleted file mode 100644
index a95118c95d97..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.svg
+++ /dev/null
@@ -1,2647 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.pdf b/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.pdf
deleted file mode 100644
index 7d6beca0b3ac..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.svg b/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.svg
deleted file mode 100644
index 17e4c78c2490..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.svg
+++ /dev/null
@@ -1,3845 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/baseline_images/test_subplots/subplots_offset_text.pdf b/lib/matplotlib/tests/baseline_images/test_subplots/subplots_offset_text.pdf
deleted file mode 100644
index 5fdc39730c4f..000000000000
Binary files a/lib/matplotlib/tests/baseline_images/test_subplots/subplots_offset_text.pdf and /dev/null differ
diff --git a/lib/matplotlib/tests/baseline_images/test_subplots/subplots_offset_text.svg b/lib/matplotlib/tests/baseline_images/test_subplots/subplots_offset_text.svg
deleted file mode 100644
index 6f2498ca0912..000000000000
--- a/lib/matplotlib/tests/baseline_images/test_subplots/subplots_offset_text.svg
+++ /dev/null
@@ -1,1804 +0,0 @@
-
-
-
diff --git a/lib/matplotlib/tests/test_animation.py b/lib/matplotlib/tests/test_animation.py
index 0b5aeaaec889..114e38996a10 100644
--- a/lib/matplotlib/tests/test_animation.py
+++ b/lib/matplotlib/tests/test_animation.py
@@ -428,7 +428,7 @@ def update(frame):
anim._start()
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_animation_frame(tmp_path, fig_test, fig_ref):
# Test the expected image after iterating through a few frames
# we save the animation to get the iteration because we are not
diff --git a/lib/matplotlib/tests/test_arrow_patches.py b/lib/matplotlib/tests/test_arrow_patches.py
index 431d1eb6eaf6..c2b6d4fa8086 100644
--- a/lib/matplotlib/tests/test_arrow_patches.py
+++ b/lib/matplotlib/tests/test_arrow_patches.py
@@ -11,7 +11,7 @@ def draw_arrow(ax, t, r):
fc="b", ec='k'))
-@image_comparison(['fancyarrow_test_image'],
+@image_comparison(['fancyarrow_test_image.png'],
tol=0 if platform.machine() == 'x86_64' else 0.012)
def test_fancyarrow():
# Added 0 to test division by zero error described in issue 3930
diff --git a/lib/matplotlib/tests/test_artist.py b/lib/matplotlib/tests/test_artist.py
index e75572d776eb..5c8141e40741 100644
--- a/lib/matplotlib/tests/test_artist.py
+++ b/lib/matplotlib/tests/test_artist.py
@@ -124,7 +124,7 @@ def test_clipping():
ax1.set_ylim([-3, 3])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_clipping_zoom(fig_test, fig_ref):
# This test places the Axes and sets its limits such that the clip path is
# outside the figure entirely. This should not break the clip path.
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
index a09748441445..70d1671cafa3 100644
--- a/lib/matplotlib/tests/test_axes.py
+++ b/lib/matplotlib/tests/test_axes.py
@@ -50,7 +50,7 @@
# the tests with multiple threads.
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_invisible_axes(fig_test, fig_ref):
ax = fig_test.subplots()
ax.set_visible(False)
@@ -156,7 +156,7 @@ def test_label_shift():
assert ax.yaxis.label.get_horizontalalignment() == "center"
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_acorr(fig_test, fig_ref):
np.random.seed(19680801)
Nx = 512
@@ -175,7 +175,7 @@ def test_acorr(fig_test, fig_ref):
ax_ref.axhline(y=0, xmin=0, xmax=1)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_acorr_integers(fig_test, fig_ref):
np.random.seed(19680801)
Nx = 51
@@ -196,7 +196,7 @@ def test_acorr_integers(fig_test, fig_ref):
ax_ref.axhline(y=0, xmin=0, xmax=1)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_spy(fig_test, fig_ref):
np.random.seed(19680801)
a = np.ones(32 * 32)
@@ -226,7 +226,7 @@ def test_spy_invalid_kwargs():
ax.spy(np.eye(3, 3), **unsupported_kw)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_matshow(fig_test, fig_ref):
mpl.style.use("mpl20")
a = np.random.rand(32, 32)
@@ -237,12 +237,7 @@ def test_matshow(fig_test, fig_ref):
ax_ref.xaxis.set_ticks_position('both')
-@image_comparison(['formatter_ticker_001',
- 'formatter_ticker_002',
- 'formatter_ticker_003',
- 'formatter_ticker_004',
- 'formatter_ticker_005',
- ],
+@image_comparison([f'formatter_ticker_{i:03d}.png' for i in range(1, 6)],
tol=0 if platform.machine() == 'x86_64' else 0.031)
def test_formatter_ticker():
import matplotlib.testing.jpl_units as units
@@ -334,7 +329,7 @@ def test_strmethodformatter_auto_formatter():
assert ax.yaxis.get_minor_formatter().fmt == targ_strformatter.fmt
-@image_comparison(["twin_axis_locators_formatters"])
+@image_comparison(["twin_axis_locators_formatters.png"])
def test_twin_axis_locators_formatters():
vals = np.linspace(0, 1, num=5, endpoint=True)
locs = np.sin(np.pi * vals / 2.0)
@@ -400,7 +395,7 @@ def test_twin_units(twin):
@pytest.mark.parametrize('twin', ('x', 'y'))
-@check_figures_equal(extensions=['png'], tol=0.19)
+@check_figures_equal(tol=0.19)
def test_twin_logscale(fig_test, fig_ref, twin):
twin_func = f'twin{twin}' # test twinx or twiny
set_scale = f'set_{twin}scale'
@@ -590,7 +585,7 @@ def test_cla_not_redefined_internally():
assert 'cla' not in klass.__dict__
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_minorticks_on_rcParams_both(fig_test, fig_ref):
with matplotlib.rc_context({"xtick.minor.visible": True,
"ytick.minor.visible": True}):
@@ -601,7 +596,7 @@ def test_minorticks_on_rcParams_both(fig_test, fig_ref):
ax_ref.minorticks_on()
-@image_comparison(["autoscale_tiny_range"], remove_text=True)
+@image_comparison(["autoscale_tiny_range.png"], remove_text=True)
def test_autoscale_tiny_range():
# github pull #904
fig, axs = plt.subplots(2, 2)
@@ -671,7 +666,7 @@ def test_use_sticky_edges():
assert_allclose(ax.get_ylim(), (-0.5, 1.5))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_sticky_shared_axes(fig_test, fig_ref):
# Check that sticky edges work whether they are set in an Axes that is a
# "leader" in a share, or an Axes that is a "follower".
@@ -857,7 +852,7 @@ def test_plot_format_kwarg_redundant():
plt.errorbar([0], [0], fmt='none', color='blue')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_errorbar_dashes(fig_test, fig_ref):
x = [1, 2, 3, 4]
y = np.sin(x)
@@ -895,7 +890,7 @@ def test_single_point():
ax2.plot('b', 'b', 'o', data=data)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_shaped_data(fig_test, fig_ref):
row = np.arange(10).reshape((1, -1))
col = np.arange(0, 100, 10).reshape((-1, 1))
@@ -937,7 +932,7 @@ def test_aitoff_proj():
ax.plot(X.flat, Y.flat, 'o', markersize=4)
-@image_comparison(['axvspan_epoch'])
+@image_comparison(['axvspan_epoch.png'])
def test_axvspan_epoch():
import matplotlib.testing.jpl_units as units
units.register()
@@ -952,7 +947,7 @@ def test_axvspan_epoch():
ax.set_xlim(t0 - 5.0*dt, tf + 5.0*dt)
-@image_comparison(['axhspan_epoch'], tol=0.02)
+@image_comparison(['axhspan_epoch.png'], tol=0.02)
def test_axhspan_epoch():
import matplotlib.testing.jpl_units as units
units.register()
@@ -1088,7 +1083,7 @@ def test_hexbin_log_clim():
assert h.get_clim() == (2, 100)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_hexbin_mincnt_behavior_upon_C_parameter(fig_test, fig_ref):
# see: gh:12926
datapoints = [
@@ -1167,7 +1162,7 @@ def test_nonfinite_limits():
@mpl.style.context('default')
@pytest.mark.parametrize('plot_fun',
['scatter', 'plot', 'fill_between'])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_limits_empty_data(plot_fun, fig_test, fig_ref):
# Check that plotting empty data doesn't change autoscaling of dates
x = np.arange("2010-01-01", "2011-01-01", dtype="datetime64[D]")
@@ -1281,7 +1276,7 @@ def test_fill_betweenx_input(y, x1, x2):
ax.fill_betweenx(y, x1, x2)
-@image_comparison(['fill_between_interpolate'], remove_text=True,
+@image_comparison(['fill_between_interpolate.png'], remove_text=True,
tol=0 if platform.machine() == 'x86_64' else 0.012)
def test_fill_between_interpolate():
x = np.arange(0.0, 2, 0.02)
@@ -1306,7 +1301,7 @@ def test_fill_between_interpolate():
interpolate=True)
-@image_comparison(['fill_between_interpolate_decreasing'],
+@image_comparison(['fill_between_interpolate_decreasing.png'],
style='mpl20', remove_text=True)
def test_fill_between_interpolate_decreasing():
p = np.array([724.3, 700, 655])
@@ -1327,7 +1322,7 @@ def test_fill_between_interpolate_decreasing():
ax.set_ylim(800, 600)
-@image_comparison(['fill_between_interpolate_nan'], remove_text=True)
+@image_comparison(['fill_between_interpolate_nan.png'], remove_text=True)
def test_fill_between_interpolate_nan():
# Tests fix for issue #18986.
x = np.arange(10)
@@ -1473,7 +1468,7 @@ def test_pcolormesh_alpha():
@pytest.mark.parametrize("dims,alpha", [(3, 1), (4, 0.5)])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolormesh_rgba(fig_test, fig_ref, dims, alpha):
ax = fig_test.subplots()
c = np.ones((5, 6, dims), dtype=float) / 2
@@ -1483,7 +1478,7 @@ def test_pcolormesh_rgba(fig_test, fig_ref, dims, alpha):
ax.pcolormesh(c[..., 0], cmap="gray", vmin=0, vmax=1, alpha=alpha)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolormesh_nearest_noargs(fig_test, fig_ref):
x = np.arange(4)
y = np.arange(7)
@@ -1497,7 +1492,7 @@ def test_pcolormesh_nearest_noargs(fig_test, fig_ref):
ax.pcolormesh(x, y, C, shading="nearest")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolormesh_log_scale(fig_test, fig_ref):
"""
Check that setting a log scale sets good default axis limits
@@ -1571,7 +1566,7 @@ def test_pcolor_datetime_axis():
label.set_rotation(30)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolor_log_scale(fig_test, fig_ref):
"""
Check that setting a log scale sets good default axis limits
@@ -1684,7 +1679,7 @@ def test_pcolorargs_with_read_only():
plt.pcolor(masked_X, masked_Y, masked_Z)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolornearest(fig_test, fig_ref):
ax = fig_test.subplots()
x = np.arange(0, 10)
@@ -1700,7 +1695,7 @@ def test_pcolornearest(fig_test, fig_ref):
ax.pcolormesh(x2, y2, Z, shading='nearest')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolornearestunits(fig_test, fig_ref):
ax = fig_test.subplots()
x = [datetime.datetime.fromtimestamp(x * 3600) for x in range(10)]
@@ -1735,7 +1730,7 @@ def test_samesizepcolorflaterror():
@pytest.mark.parametrize('snap', [False, True])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pcolorauto(fig_test, fig_ref, snap):
ax = fig_test.subplots()
x = np.arange(0, 10)
@@ -1839,7 +1834,7 @@ def test_marker_as_markerstyle():
ax.errorbar([1, 2, 3], [5, 4, 3], marker=m)
-@image_comparison(['markevery'], remove_text=True)
+@image_comparison(['markevery.png'], remove_text=True)
def test_markevery():
x = np.linspace(0, 10, 100)
y = np.sin(x) * np.sqrt(x/10 + 0.5)
@@ -1853,7 +1848,7 @@ def test_markevery():
ax.legend()
-@image_comparison(['markevery_line'], remove_text=True, tol=0.005)
+@image_comparison(['markevery_line.png'], remove_text=True, tol=0.005)
def test_markevery_line():
# TODO: a slight change in rendering between Inkscape versions may explain
# why one had to introduce a small non-zero tolerance for the SVG test
@@ -1871,7 +1866,7 @@ def test_markevery_line():
ax.legend()
-@image_comparison(['markevery_linear_scales'], remove_text=True, tol=0.001)
+@image_comparison(['markevery_linear_scales.png'], remove_text=True, tol=0.001)
def test_markevery_linear_scales():
cases = [None,
8,
@@ -1896,7 +1891,7 @@ def test_markevery_linear_scales():
plt.plot(x, y, 'o', ls='-', ms=4, markevery=case)
-@image_comparison(['markevery_linear_scales_zoomed'], remove_text=True)
+@image_comparison(['markevery_linear_scales_zoomed.png'], remove_text=True)
def test_markevery_linear_scales_zoomed():
cases = [None,
8,
@@ -1923,7 +1918,7 @@ def test_markevery_linear_scales_zoomed():
plt.ylim((1.1, 1.7))
-@image_comparison(['markevery_log_scales'], remove_text=True)
+@image_comparison(['markevery_log_scales.png'], remove_text=True)
def test_markevery_log_scales():
cases = [None,
8,
@@ -1950,7 +1945,7 @@ def test_markevery_log_scales():
plt.plot(x, y, 'o', ls='-', ms=4, markevery=case)
-@image_comparison(['markevery_polar'], style='default', remove_text=True)
+@image_comparison(['markevery_polar.png'], style='default', remove_text=True)
def test_markevery_polar():
cases = [None,
8,
@@ -1974,7 +1969,7 @@ def test_markevery_polar():
plt.plot(theta, r, 'o', ls='-', ms=4, markevery=case)
-@image_comparison(['markevery_linear_scales_nans'], remove_text=True)
+@image_comparison(['markevery_linear_scales_nans.png'], remove_text=True)
def test_markevery_linear_scales_nans():
cases = [None,
8,
@@ -2049,7 +2044,7 @@ def test_bar_tick_label_multiple_old_alignment():
align='center')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_bar_decimal_center(fig_test, fig_ref):
ax = fig_test.subplots()
x0 = [1.5, 8.4, 5.3, 4.2]
@@ -2063,7 +2058,7 @@ def test_bar_decimal_center(fig_test, fig_ref):
ax.bar(x0, y0, align='center')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_barh_decimal_center(fig_test, fig_ref):
ax = fig_test.subplots()
x0 = [1.5, 8.4, 5.3, 4.2]
@@ -2077,7 +2072,7 @@ def test_barh_decimal_center(fig_test, fig_ref):
ax.barh(x0, y0, height=[0.5, 0.5, 1, 1], align='center')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_bar_decimal_width(fig_test, fig_ref):
x = [1.5, 8.4, 5.3, 4.2]
y = [1.1, 2.2, 3.3, 4.4]
@@ -2091,7 +2086,7 @@ def test_bar_decimal_width(fig_test, fig_ref):
ax.bar(x, y, width=w0, align='center')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_barh_decimal_height(fig_test, fig_ref):
x = [1.5, 8.4, 5.3, 4.2]
y = [1.1, 2.2, 3.3, 4.4]
@@ -2311,7 +2306,7 @@ def test_pandas_minimal_plot(pd):
plt.plot(df, df)
-@image_comparison(['hist_log'], remove_text=True)
+@image_comparison(['hist_log.png'], remove_text=True)
def test_hist_log():
data0 = np.linspace(0, 1, 200)**3
data = np.concatenate([1 - data0, 1 + data0])
@@ -2319,7 +2314,7 @@ def test_hist_log():
ax.hist(data, fill=False, log=True)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_hist_log_2(fig_test, fig_ref):
axs_test = fig_test.subplots(2, 3)
axs_ref = fig_ref.subplots(2, 3)
@@ -2481,7 +2476,7 @@ def test_stairs_no_baseline_fill_warns():
)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_stairs(fig_test, fig_ref):
import matplotlib.lines as mlines
y = np.array([6, 14, 32, 37, 48, 32, 21, 4]) # hist
@@ -2525,7 +2520,7 @@ def test_stairs(fig_test, fig_ref):
ref_axes[5].semilogx()
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_stairs_fill(fig_test, fig_ref):
h, bins = [1, 2, 3, 4, 2], [0, 1, 2, 3, 4, 5]
bs = -2
@@ -2551,7 +2546,7 @@ def test_stairs_fill(fig_test, fig_ref):
ref_axes[3].set_xlim(bs, None)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_stairs_update(fig_test, fig_ref):
# fixed ylim because stairs() does autoscale, but updating data does not
ylim = -3, 4
@@ -2575,7 +2570,7 @@ def test_stairs_update(fig_test, fig_ref):
ref_ax.set_ylim(ylim)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_stairs_baseline_None(fig_test, fig_ref):
x = np.array([0, 2, 3, 5, 10])
y = np.array([1.148, 1.231, 1.248, 1.25])
@@ -2651,7 +2646,7 @@ def test_stairs_datetime():
plt.xticks(rotation=30)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_stairs_edge_handling(fig_test, fig_ref):
# Test
test_ax = fig_test.add_subplot()
@@ -2702,7 +2697,7 @@ def test_contour_colorbar():
cbar.add_lines(cs2, erase=False)
-@image_comparison(['hist2d', 'hist2d'], remove_text=True, style='mpl20')
+@image_comparison(['hist2d.png', 'hist2d.png'], remove_text=True, style='mpl20')
def test_hist2d():
# Remove this line when this test image is regenerated.
plt.rcParams['pcolormesh.snap'] = False
@@ -2720,7 +2715,7 @@ def test_hist2d():
ax.hist2d("x", "y", bins=10, data=data, rasterized=True)
-@image_comparison(['hist2d_transpose'], remove_text=True, style='mpl20')
+@image_comparison(['hist2d_transpose.png'], remove_text=True, style='mpl20')
def test_hist2d_transpose():
# Remove this line when this test image is regenerated.
plt.rcParams['pcolormesh.snap'] = False
@@ -2787,7 +2782,7 @@ def test_scatter_2D(self):
fig, ax = plt.subplots()
ax.scatter(x, y, c=z, s=200, edgecolors='face')
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_scatter_decimal(self, fig_test, fig_ref):
x0 = np.array([1.5, 8.4, 5.3, 4.2])
y0 = np.array([1.1, 2.2, 3.3, 4.4])
@@ -2867,7 +2862,7 @@ def test_scatter_edgecolor_RGB(self):
edgecolor=(1, 0, 0, 1))
assert mcolors.same_color(coll.get_edgecolor(), (1, 0, 0, 1))
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_scatter_invalid_color(self, fig_test, fig_ref):
ax = fig_test.subplots()
cmap = mpl.colormaps["viridis"].resampled(16)
@@ -2883,7 +2878,7 @@ def test_scatter_invalid_color(self, fig_test, fig_ref):
ax.scatter([0, 2], [0, 2], c=[1, 2], s=[1, 3], cmap=cmap)
ax.scatter([1, 3], [1, 3], s=[2, 4], color="k")
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_scatter_no_invalid_color(self, fig_test, fig_ref):
# With plotnonfinite=False we plot only 2 points.
ax = fig_test.subplots()
@@ -2905,14 +2900,14 @@ def test_scatter_norm_vminvmax(self):
ax.scatter(x, x, c=x, norm=mcolors.Normalize(-10, 10),
vmin=0, vmax=5)
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_scatter_single_point(self, fig_test, fig_ref):
ax = fig_test.subplots()
ax.scatter(1, 1, c=1)
ax = fig_ref.subplots()
ax.scatter([1], [1], c=[1])
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_scatter_different_shapes(self, fig_test, fig_ref):
x = np.arange(10)
ax = fig_test.subplots()
@@ -2991,7 +2986,7 @@ def get_next_color(): # pragma: no cover
get_next_color_func=get_next_color)
@mpl.style.context('default')
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_scatter_single_color_c(self, fig_test, fig_ref):
rgb = [[1, 0.5, 0.05]]
rgba = [[1, 0.5, 0.05, .5]]
@@ -3257,7 +3252,7 @@ def test_log_scales_invalid():
ax.set_ylim(-1, 10)
-@image_comparison(['stackplot_test_image', 'stackplot_test_image'],
+@image_comparison(['stackplot_test_image.png', 'stackplot_test_image.png'],
tol=0 if platform.machine() == 'x86_64' else 0.031)
def test_stackplot():
fig = plt.figure()
@@ -3279,7 +3274,7 @@ def test_stackplot():
ax.set_ylim((0, 70))
-@image_comparison(['stackplot_test_baseline'], remove_text=True)
+@image_comparison(['stackplot_test_baseline.png'], remove_text=True)
def test_stackplot_baseline():
np.random.seed(0)
@@ -3589,7 +3584,7 @@ def test_bxp_bad_capwidths():
_bxp_test_helper(bxp_kwargs=dict(capwidths=[1]))
-@image_comparison(['boxplot', 'boxplot'], tol=1.28, style='default')
+@image_comparison(['boxplot.png', 'boxplot.png'], tol=1.28, style='default')
def test_boxplot():
# Randomness used for bootstrapping.
np.random.seed(937)
@@ -3608,7 +3603,7 @@ def test_boxplot():
ax.set_ylim((-30, 30))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_boxplot_masked(fig_test, fig_ref):
# Check that masked values are ignored when plotting a boxplot
x_orig = np.linspace(-1, 1, 200)
@@ -3689,7 +3684,7 @@ def _rc_test_bxp_helper(ax, rc_dict):
return ax
-@image_comparison(['boxplot_rc_parameters'],
+@image_comparison(['boxplot_rc_parameters.png'],
savefig_kwarg={'dpi': 100}, remove_text=True,
tol=1, style='default')
def test_boxplot_rc_parameters():
@@ -4047,7 +4042,7 @@ def test_violinplot_outofrange_quantiles():
ax.violinplot(data, quantiles=[[-0.05, 0.2, 0.3, 0.75]])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_violinplot_color_specification(fig_test, fig_ref):
# Ensures that setting colors in violinplot constructor works
# the same way as setting the color of each object manually
@@ -4120,7 +4115,7 @@ def assert_colors_equal(colors1, colors2):
assert_colors_equal(colors_test, mcolors.to_rgba_array(linecolors))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_violinplot_single_list_quantiles(fig_test, fig_ref):
# Ensures quantile list for 1D can be passed in as single list
# First 9 digits of frac(sqrt(83))
@@ -4136,7 +4131,7 @@ def test_violinplot_single_list_quantiles(fig_test, fig_ref):
ax.violinplot(data, quantiles=[[0.1, 0.3, 0.9]])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_violinplot_pandas_series(fig_test, fig_ref, pd):
np.random.seed(110433579)
s1 = pd.Series(np.random.normal(size=7), index=[9, 8, 7, 6, 5, 4, 3])
@@ -4177,7 +4172,7 @@ def test_tick_space_size_0():
plt.savefig(b, dpi=80, format='raw')
-@image_comparison(['errorbar_basic', 'errorbar_mixed', 'errorbar_basic'])
+@image_comparison(['errorbar_basic.png', 'errorbar_mixed.png', 'errorbar_basic.png'])
def test_errorbar():
# longdouble due to floating point rounding issues with certain
# computer chipsets
@@ -4232,8 +4227,7 @@ def test_errorbar():
ax.set_title("Simplest errorbars, 0.2 in x, 0.4 in y")
-@image_comparison(['mixed_errorbar_polar_caps'], extensions=['png'],
- remove_text=True)
+@image_comparison(['mixed_errorbar_polar_caps.png'], remove_text=True)
def test_mixed_errorbar_polar_caps():
"""
Mix several polar errorbar use cases in a single test figure.
@@ -4315,7 +4309,7 @@ def test_errorbar_shape():
ax.errorbar(x, y, yerr=yerr, xerr=xerr, fmt='o')
-@image_comparison(['errorbar_limits'])
+@image_comparison(['errorbar_limits.png'])
def test_errorbar_limits():
x = np.arange(0.5, 5.5, 0.5)
y = np.exp(-x)
@@ -4408,7 +4402,7 @@ def test_errorbar_line_specific_kwargs():
assert plotline.get_drawstyle() == 'steps-mid'
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_errorbar_with_prop_cycle(fig_test, fig_ref):
ax = fig_ref.subplots()
ax.errorbar(x=[2, 4, 10], y=[0, 1, 2], yerr=0.5,
@@ -4532,7 +4526,7 @@ def test_errorbar_linewidth_type(elinewidth):
plt.errorbar([1, 2, 3], [1, 2, 3], yerr=[1, 2, 3], elinewidth=elinewidth)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_errorbar_nan(fig_test, fig_ref):
ax = fig_test.add_subplot()
xs = range(5)
@@ -4544,7 +4538,7 @@ def test_errorbar_nan(fig_test, fig_ref):
ax.errorbar([4], [3], [6], fmt="C0")
-@image_comparison(['hist_stacked_stepfilled', 'hist_stacked_stepfilled'])
+@image_comparison(['hist_stacked_stepfilled.png', 'hist_stacked_stepfilled.png'])
def test_hist_stacked_stepfilled():
# make some data
d1 = np.linspace(1, 3, 20)
@@ -4558,7 +4552,7 @@ def test_hist_stacked_stepfilled():
ax.hist("x", histtype="stepfilled", stacked=True, data=data)
-@image_comparison(['hist_offset'])
+@image_comparison(['hist_offset.png'])
def test_hist_offset():
# make some data
d1 = np.linspace(0, 10, 50)
@@ -4587,7 +4581,7 @@ def test_hist_step_horiz():
ax.hist((d1, d2), histtype="step", orientation="horizontal")
-@image_comparison(['hist_stacked_weights'])
+@image_comparison(['hist_stacked_weights.png'])
def test_hist_stacked_weighted():
# make some data
d1 = np.linspace(0, 10, 50)
@@ -4726,7 +4720,7 @@ def test_stem_polar_baseline():
assert container.baseline.get_path()._interpolation_steps > 100
-@image_comparison(['hist_stacked_stepfilled_alpha'])
+@image_comparison(['hist_stacked_stepfilled_alpha.png'])
def test_hist_stacked_stepfilled_alpha():
# make some data
d1 = np.linspace(1, 3, 20)
@@ -4735,7 +4729,7 @@ def test_hist_stacked_stepfilled_alpha():
ax.hist((d1, d2), histtype="stepfilled", stacked=True, alpha=0.5)
-@image_comparison(['hist_stacked_step'])
+@image_comparison(['hist_stacked_step.png'])
def test_hist_stacked_step():
# make some data
d1 = np.linspace(1, 3, 20)
@@ -4744,7 +4738,7 @@ def test_hist_stacked_step():
ax.hist((d1, d2), histtype="step", stacked=True)
-@image_comparison(['hist_stacked_normed'])
+@image_comparison(['hist_stacked_normed.png'])
def test_hist_stacked_density():
# make some data
d1 = np.linspace(1, 3, 20)
@@ -4832,7 +4826,7 @@ def test_hist_stacked_step_bottom_geometry():
assert_array_equal(polygon.get_xy(), xy[1])
-@image_comparison(['hist_stacked_bar'])
+@image_comparison(['hist_stacked_bar.png'])
def test_hist_stacked_bar():
# make some data
d = [[100, 100, 100, 100, 200, 320, 450, 80, 20, 600, 310, 800],
@@ -4856,7 +4850,7 @@ def test_hist_stacked_bar():
{'linestyle': ["-", "--", ":"]},
{'linewidth': [1, 1.5, 2]},
{'color': ["b", "g", "r"]}))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_hist_vectorized_params(fig_test, fig_ref, kwargs):
np.random.seed(19680801)
xs = [np.random.randn(n) for n in [20, 50, 100]]
@@ -4990,7 +4984,7 @@ def test_rgba_markers():
ax.axis([-1, 4, 0, 5])
-@image_comparison(['mollweide_grid'], remove_text=True)
+@image_comparison(['mollweide_grid.png'], remove_text=True)
def test_mollweide_grid():
# test that both horizontal and vertical gridlines appear on the Mollweide
# projection
@@ -5073,7 +5067,7 @@ def test_alpha():
markersize=20, lw=10)
-@image_comparison(['eventplot', 'eventplot'], remove_text=True)
+@image_comparison(['eventplot.png', 'eventplot.png'], remove_text=True)
def test_eventplot():
np.random.seed(0)
@@ -5225,7 +5219,7 @@ def test_eventplot_orientation(data, orientation):
plt.draw()
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_eventplot_units_list(fig_test, fig_ref):
# test that list of lists converted properly:
ts_1 = [datetime.datetime(2021, 1, 1), datetime.datetime(2021, 1, 2),
@@ -5279,7 +5273,7 @@ def test_vertex_markers():
ax.set_ylim([-1, 10])
-@image_comparison(['vline_hline_zorder', 'errorbar_zorder'],
+@image_comparison(['vline_hline_zorder.png', 'errorbar_zorder.png'],
tol=0 if platform.machine() == 'x86_64' else 0.026)
def test_eb_line_zorder():
x = list(range(10))
@@ -5498,7 +5492,7 @@ def test_hlines_default():
@pytest.mark.parametrize('data', [[1, 2, 3, np.nan, 5],
np.ma.masked_equal([1, 2, 3, 4, 5], 4)])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_lines_with_colors(fig_test, fig_ref, data):
test_colors = ['red', 'green', 'blue', 'purple', 'orange']
fig_test.add_subplot(2, 1, 1).vlines(data, 0, 1,
@@ -5711,7 +5705,7 @@ def test_specgram_fs_none():
assert xmin == 32 and xmax == 96
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_specgram_origin_rcparam(fig_test, fig_ref):
"""Test specgram ignores image.origin rcParam and uses origin 'upper'."""
t = np.arange(500)
@@ -5824,7 +5818,7 @@ def test_psd_csd_edge_cases():
axs[1].csd(np.zeros(5), np.zeros(5))
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_twin_remove(fig_test, fig_ref):
ax_test = fig_test.add_subplot()
ax_twinx = ax_test.twinx()
@@ -5960,7 +5954,7 @@ def test_reset_grid():
assert ax.xaxis.majorTicks[0].gridline.get_visible()
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_reset_ticks(fig_test, fig_ref):
for fig in [fig_ref, fig_test]:
ax = fig.add_subplot()
@@ -6474,7 +6468,7 @@ def test_set_ticks_kwargs_raise_error_without_labels():
ax.xaxis.set_ticks(ticks, alpha=0.5)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_set_ticks_with_labels(fig_test, fig_ref):
"""
Test that these two are identical::
@@ -7719,7 +7713,7 @@ def test_empty_errorbar_legend():
ax.legend()
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_plot_decimal(fig_test, fig_ref):
x0 = np.arange(-10, 10, 0.3)
y0 = [5.2 * x ** 3 - 2.1 * x ** 2 + 7.34 * x + 4.5 for x in x0]
@@ -7731,8 +7725,7 @@ def test_plot_decimal(fig_test, fig_ref):
fig_ref.subplots().plot(x0, y0)
-# pdf and svg tests fail using travis' old versions of gs and inkscape.
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_markerfacecolor_none_alpha(fig_test, fig_ref):
fig_test.subplots().plot(0, "o", mfc="none", alpha=.5)
fig_ref.subplots().plot(0, "o", mfc="w", alpha=.5)
@@ -8281,7 +8274,7 @@ def test_minor_accountedfor():
bbspines[n * 2].bounds, targetbb.bounds, atol=1e-2)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_axis_bool_arguments(fig_test, fig_ref):
# Test if False and "off" give the same
fig_test.add_subplot(211).axis(False)
@@ -8533,7 +8526,7 @@ def test_unautoscale(axis, auto):
assert_array_equal(get_lim(), (-0.5, 0.5))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_polar_interpolation_steps_variable_r(fig_test, fig_ref):
l, = fig_test.add_subplot(projection="polar").plot([0, np.pi/2], [1, 2])
l.get_path()._interpolation_steps = 100
@@ -8643,7 +8636,7 @@ def test_2dcolor_plot(fig_test, fig_ref):
axs[4].bar(np.arange(10), np.arange(10), color=color.reshape((1, -1)))
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_shared_axes_clear(fig_test, fig_ref):
x = np.arange(0.0, 2*np.pi, 0.01)
y = np.sin(x)
@@ -9167,7 +9160,7 @@ def test_bar_leading_nan():
assert np.isfinite(b.get_width())
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_bar_all_nan(fig_test, fig_ref):
mpl.style.use("mpl20")
ax_test = fig_test.subplots()
@@ -9308,7 +9301,7 @@ def test_rc_axes_label_formatting():
assert ax.xaxis.label.get_fontweight() == 'bold'
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_ecdf(fig_test, fig_ref):
data = np.array([0, -np.inf, -np.inf, np.inf, 1, 1, 2])
weights = range(len(data))
@@ -9399,7 +9392,7 @@ def test_axhvlinespan_interpolation():
ax.axhspan(.6, .7, .8, .9, fc="C2", alpha=.5)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
@pytest.mark.parametrize("which", ("x", "y"))
def test_axes_clear_behavior(fig_ref, fig_test, which):
"""Test that the given tick params are not reset by ax.clear()."""
@@ -9516,7 +9509,7 @@ def test_latex_pie_percent(fig_test, fig_ref):
ax1.pie(data, autopct=r"%1.0f\%%", textprops={'usetex': True})
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_violinplot_orientation(fig_test, fig_ref):
# Test the `orientation : {'vertical', 'horizontal'}`
# parameter and deprecation of `vert: bool`.
@@ -9553,7 +9546,7 @@ def test_violinplot_orientation(fig_test, fig_ref):
ax_test.violinplot(all_data, orientation='horizontal')
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_boxplot_orientation(fig_test, fig_ref):
# Test the `orientation : {'vertical', 'horizontal'}`
# parameter and deprecation of `vert: bool`.
@@ -9708,7 +9701,7 @@ def test_bar_color_precedence():
assert mcolors.same_color(bar.get_facecolor(), 'green')
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_axes_set_position_external_bbox_unchanged(fig_test, fig_ref):
# From #29410: Modifying Axes' position also alters the original Bbox
# object used for initialization
diff --git a/lib/matplotlib/tests/test_backend_cairo.py b/lib/matplotlib/tests/test_backend_cairo.py
index 8cc0b319b770..c5712cc50d5b 100644
--- a/lib/matplotlib/tests/test_backend_cairo.py
+++ b/lib/matplotlib/tests/test_backend_cairo.py
@@ -8,7 +8,7 @@
@pytest.mark.backend('cairo')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_patch_alpha_coloring(fig_test, fig_ref):
"""
Test checks that the patch and collection are rendered with the specified
diff --git a/lib/matplotlib/tests/test_backend_svg.py b/lib/matplotlib/tests/test_backend_svg.py
index 646bf65dfa74..d2d4042870a1 100644
--- a/lib/matplotlib/tests/test_backend_svg.py
+++ b/lib/matplotlib/tests/test_backend_svg.py
@@ -87,7 +87,7 @@ def test_bold_font_output_with_none_fonttype():
ax.set_title('bold-title', fontweight='bold')
-@check_figures_equal(tol=20)
+@check_figures_equal(extensions=['svg'], tol=20)
def test_rasterized(fig_test, fig_ref):
t = np.arange(0, 100) * (2.3)
x = np.cos(t)
@@ -102,7 +102,7 @@ def test_rasterized(fig_test, fig_ref):
ax_test.plot(x+1, y, "-", c="b", lw=10, rasterized=True)
-@check_figures_equal()
+@check_figures_equal(extensions=['svg'])
def test_rasterized_ordering(fig_test, fig_ref):
t = np.arange(0, 100) * (2.3)
x = np.cos(t)
diff --git a/lib/matplotlib/tests/test_category.py b/lib/matplotlib/tests/test_category.py
index b724e5839c4d..7917bb17ad59 100644
--- a/lib/matplotlib/tests/test_category.py
+++ b/lib/matplotlib/tests/test_category.py
@@ -281,7 +281,7 @@ def test_mixed_type_update_exception(self, plotter, xdata):
@mpl.style.context('default')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_overriding_units_in_plot(fig_test, fig_ref):
from datetime import datetime
diff --git a/lib/matplotlib/tests/test_collections.py b/lib/matplotlib/tests/test_collections.py
index bbed939c0c07..27ce8b5d69bc 100644
--- a/lib/matplotlib/tests/test_collections.py
+++ b/lib/matplotlib/tests/test_collections.py
@@ -66,7 +66,7 @@ def generate_EventCollection_plot():
return ax, coll, props
-@image_comparison(['EventCollection_plot__default'])
+@image_comparison(['EventCollection_plot__default.png'])
def test__EventCollection__get_props():
_, coll, props = generate_EventCollection_plot()
# check that the default segments have the correct coordinates
@@ -92,7 +92,7 @@ def test__EventCollection__get_props():
np.testing.assert_array_equal(color, props['color'])
-@image_comparison(['EventCollection_plot__set_positions'])
+@image_comparison(['EventCollection_plot__set_positions.png'])
def test__EventCollection__set_positions():
splt, coll, props = generate_EventCollection_plot()
new_positions = np.hstack([props['positions'], props['extra_positions']])
@@ -106,7 +106,7 @@ def test__EventCollection__set_positions():
splt.set_xlim(-1, 90)
-@image_comparison(['EventCollection_plot__add_positions'])
+@image_comparison(['EventCollection_plot__add_positions.png'])
def test__EventCollection__add_positions():
splt, coll, props = generate_EventCollection_plot()
new_positions = np.hstack([props['positions'],
@@ -124,7 +124,7 @@ def test__EventCollection__add_positions():
splt.set_xlim(-1, 35)
-@image_comparison(['EventCollection_plot__append_positions'])
+@image_comparison(['EventCollection_plot__append_positions.png'])
def test__EventCollection__append_positions():
splt, coll, props = generate_EventCollection_plot()
new_positions = np.hstack([props['positions'],
@@ -140,7 +140,7 @@ def test__EventCollection__append_positions():
splt.set_xlim(-1, 90)
-@image_comparison(['EventCollection_plot__extend_positions'])
+@image_comparison(['EventCollection_plot__extend_positions.png'])
def test__EventCollection__extend_positions():
splt, coll, props = generate_EventCollection_plot()
new_positions = np.hstack([props['positions'],
@@ -156,7 +156,7 @@ def test__EventCollection__extend_positions():
splt.set_xlim(-1, 90)
-@image_comparison(['EventCollection_plot__switch_orientation'])
+@image_comparison(['EventCollection_plot__switch_orientation.png'])
def test__EventCollection__switch_orientation():
splt, coll, props = generate_EventCollection_plot()
new_orientation = 'vertical'
@@ -173,7 +173,7 @@ def test__EventCollection__switch_orientation():
splt.set_xlim(0, 2)
-@image_comparison(['EventCollection_plot__switch_orientation__2x'])
+@image_comparison(['EventCollection_plot__switch_orientation__2x.png'])
def test__EventCollection__switch_orientation_2x():
"""
Check that calling switch_orientation twice sets the orientation back to
@@ -194,7 +194,7 @@ def test__EventCollection__switch_orientation_2x():
splt.set_title('EventCollection: switch_orientation 2x')
-@image_comparison(['EventCollection_plot__set_orientation'])
+@image_comparison(['EventCollection_plot__set_orientation.png'])
def test__EventCollection__set_orientation():
splt, coll, props = generate_EventCollection_plot()
new_orientation = 'vertical'
@@ -211,7 +211,7 @@ def test__EventCollection__set_orientation():
splt.set_xlim(0, 2)
-@image_comparison(['EventCollection_plot__set_linelength'])
+@image_comparison(['EventCollection_plot__set_linelength.png'])
def test__EventCollection__set_linelength():
splt, coll, props = generate_EventCollection_plot()
new_linelength = 15
@@ -226,7 +226,7 @@ def test__EventCollection__set_linelength():
splt.set_ylim(-20, 20)
-@image_comparison(['EventCollection_plot__set_lineoffset'])
+@image_comparison(['EventCollection_plot__set_lineoffset.png'])
def test__EventCollection__set_lineoffset():
splt, coll, props = generate_EventCollection_plot()
new_lineoffset = -5.
@@ -242,9 +242,9 @@ def test__EventCollection__set_lineoffset():
@image_comparison([
- 'EventCollection_plot__set_linestyle',
- 'EventCollection_plot__set_linestyle',
- 'EventCollection_plot__set_linewidth',
+ 'EventCollection_plot__set_linestyle.png',
+ 'EventCollection_plot__set_linestyle.png',
+ 'EventCollection_plot__set_linewidth.png',
])
def test__EventCollection__set_prop():
for prop, value, expected in [
@@ -258,7 +258,7 @@ def test__EventCollection__set_prop():
splt.set_title(f'EventCollection: set_{prop}')
-@image_comparison(['EventCollection_plot__set_color'])
+@image_comparison(['EventCollection_plot__set_color.png'])
def test__EventCollection__set_color():
splt, coll, _ = generate_EventCollection_plot()
new_color = np.array([0, 1, 1, 1])
@@ -334,7 +334,7 @@ def test_add_collection():
@mpl.style.context('mpl20')
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_collection_log_datalim(fig_test, fig_ref):
# Data limits should respect the minimum x/y when using log scale.
x_vals = [4.38462e-6, 5.54929e-6, 7.02332e-6, 8.88889e-6, 1.12500e-5,
@@ -831,7 +831,7 @@ def test_collection_set_verts_array():
assert np.array_equal(ap._codes, atp._codes)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
@pytest.mark.parametrize("kwargs", [{}, {"step": "pre"}])
def test_fill_between_poly_collection_set_data(fig_test, fig_ref, kwargs):
t = np.linspace(0, 16)
@@ -1306,7 +1306,7 @@ def test_check_masked_offsets():
ax.scatter(unmasked_x, masked_y)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_masked_set_offsets(fig_ref, fig_test):
x = np.ma.array([1, 2, 3, 4, 5], mask=[0, 0, 1, 1, 0])
y = np.arange(1, 6)
@@ -1340,7 +1340,7 @@ def test_check_offsets_dtype():
@pytest.mark.parametrize('gapcolor', ['orange', ['r', 'k']])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_striped_lines(fig_test, fig_ref, gapcolor):
ax_test = fig_test.add_subplot(111)
ax_ref = fig_ref.add_subplot(111)
diff --git a/lib/matplotlib/tests/test_colorbar.py b/lib/matplotlib/tests/test_colorbar.py
index dcd0a62c4a25..f95f131e3bf6 100644
--- a/lib/matplotlib/tests/test_colorbar.py
+++ b/lib/matplotlib/tests/test_colorbar.py
@@ -848,7 +848,7 @@ def test_colorbar_change_lim_scale():
cb.ax.set_ylim([20, 90])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_axes_handles_same_functions(fig_ref, fig_test):
# prove that cax and cb.ax are functionally the same
for nn, fig in enumerate([fig_ref, fig_test]):
@@ -894,7 +894,7 @@ def test_twoslope_colorbar():
fig.colorbar(pc)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_remove_cb_whose_mappable_has_no_figure(fig_ref, fig_test):
ax = fig_test.add_subplot()
cb = fig_test.colorbar(cm.ScalarMappable(), cax=ax)
@@ -1178,7 +1178,7 @@ def test_title_text_loc():
cb.ax.spines['outline'].get_window_extent().ymax)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_passing_location(fig_ref, fig_test):
ax_ref = fig_ref.add_subplot()
im = ax_ref.imshow([[0, 1], [2, 3]])
diff --git a/lib/matplotlib/tests/test_contour.py b/lib/matplotlib/tests/test_contour.py
index f1ec06450864..f7126cb427b6 100644
--- a/lib/matplotlib/tests/test_contour.py
+++ b/lib/matplotlib/tests/test_contour.py
@@ -86,7 +86,7 @@ def test_contour_Nlevels():
assert (cs1.levels == cs2.levels).all()
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_contour_set_paths(fig_test, fig_ref):
cs_test = fig_test.subplots().contour([[0, 1], [1, 2]])
cs_ref = fig_ref.subplots().contour([[1, 0], [2, 1]])
diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py
index c80f53413181..0c873934ebcb 100644
--- a/lib/matplotlib/tests/test_figure.py
+++ b/lib/matplotlib/tests/test_figure.py
@@ -209,7 +209,7 @@ def test_clf_keyword():
assert [t.get_text() for t in fig2.texts] == []
-@image_comparison(['figure_today'],
+@image_comparison(['figure_today.png'],
tol=0 if platform.machine() == 'x86_64' else 0.015)
def test_figure():
# named figure support
@@ -225,7 +225,7 @@ def test_figure():
plt.close('tomorrow')
-@image_comparison(['figure_legend'])
+@image_comparison(['figure_legend.png'])
def test_figure_legend():
fig, axs = plt.subplots(2)
axs[0].plot([0, 1], [1, 0], label='x', color='g')
@@ -322,7 +322,7 @@ def test_add_subplot_invalid():
fig.add_subplot(ax)
-@image_comparison(['figure_suptitle'])
+@image_comparison(['figure_suptitle.png'])
def test_suptitle():
fig, _ = plt.subplots()
fig.suptitle('hello', color='r')
@@ -649,7 +649,7 @@ def test_savefig_locate_colorbar():
@mpl.rc_context({"savefig.transparent": True})
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_savefig_transparent(fig_test, fig_ref):
# create two transparent subfigures with corresponding transparent inset
# axes. the entire background of the image should be transparent.
@@ -742,7 +742,7 @@ def test_invalid_layouts():
fig.set_layout_engine("constrained")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_tightlayout_autolayout_deconflict(fig_test, fig_ref):
for fig, autolayout in zip([fig_ref, fig_test], [False, True]):
with mpl.rc_context({'figure.autolayout': autolayout}):
@@ -1002,7 +1002,7 @@ def test_animated_with_canvas_change(fig_test, fig_ref):
class TestSubplotMosaic:
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
@pytest.mark.parametrize(
"x", [
[["A", "A", "B"], ["C", "D", "B"]],
@@ -1034,7 +1034,7 @@ def test_basic(self, fig_test, fig_ref, x):
axD = fig_ref.add_subplot(gs[1, 1])
axD.set_title(labels[3])
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_all_nested(self, fig_test, fig_ref):
x = [["A", "B"], ["C", "D"]]
y = [["E", "F"], ["G", "H"]]
@@ -1057,7 +1057,7 @@ def test_all_nested(self, fig_test, fig_ref):
for k, label in enumerate(r):
fig_ref.add_subplot(gs_right[j, k]).set_title(label)
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_nested(self, fig_test, fig_ref):
fig_ref.set_layout_engine("constrained")
@@ -1091,7 +1091,7 @@ def test_nested(self, fig_test, fig_ref):
axF = fig_ref.add_subplot(gs[0, 0])
axF.set_title("F")
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_nested_tuple(self, fig_test, fig_ref):
x = [["A", "B", "B"], ["C", "C", "D"]]
xt = (("A", "B", "B"), ("C", "C", "D"))
@@ -1119,7 +1119,7 @@ def test_nested_height_ratios(self):
assert axd["D"].get_gridspec().get_height_ratios() == height_ratios
assert axd["B"].get_gridspec().get_height_ratios() != height_ratios
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
@pytest.mark.parametrize(
"x, empty_sentinel",
[
@@ -1164,7 +1164,7 @@ def test_fail_list_of_str(self):
with pytest.raises(ValueError, match='must be 2D'):
plt.subplot_mosaic([['a', 'b'], [('a', 'b'), 'c']])
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
@pytest.mark.parametrize("subplot_kw", [{}, {"projection": "polar"}, None])
def test_subplot_kw(self, fig_test, fig_ref, subplot_kw):
x = [[1, 2]]
@@ -1176,7 +1176,7 @@ def test_subplot_kw(self, fig_test, fig_ref, subplot_kw):
axB = fig_ref.add_subplot(gs[0, 1], **subplot_kw)
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
@pytest.mark.parametrize("multi_value", ['BC', tuple('BC')])
def test_per_subplot_kw(self, fig_test, fig_ref, multi_value):
x = 'AB;CD'
@@ -1231,7 +1231,7 @@ def test_extra_per_subplot_kw(self):
):
Figure().subplot_mosaic("A", per_subplot_kw={"B": {}})
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
@pytest.mark.parametrize("str_pattern",
["AAA\nBBB", "\nAAA\nBBB\n", "ABC\nDEF"]
)
@@ -1268,7 +1268,7 @@ def test_fail(self, x, match):
with pytest.raises(ValueError, match=match):
fig.subplot_mosaic(x)
- @check_figures_equal(extensions=["png"])
+ @check_figures_equal()
def test_hashable_keys(self, fig_test, fig_ref):
fig_test.subplot_mosaic([[object(), object()]])
fig_ref.subplot_mosaic([["A", "B"]])
@@ -1645,7 +1645,7 @@ def test_kwargs_pass():
assert sub_fig.get_label() == 'sub figure'
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_rcparams(fig_test, fig_ref):
fig_ref.supxlabel("xlabel", weight='bold', size=15)
fig_ref.supylabel("ylabel", weight='bold', size=15)
diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py
index 9e387701bf38..0e9f3fb37fbd 100644
--- a/lib/matplotlib/tests/test_image.py
+++ b/lib/matplotlib/tests/test_image.py
@@ -88,7 +88,7 @@ def test_image_python_io():
(3, 2.9, "hanning"), # <3 upsample.
(3, 9.1, "nearest"), # >3 upsample.
])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_imshow_antialiased(fig_test, fig_ref,
img_size, fig_size, interpolation):
np.random.seed(19680801)
@@ -104,7 +104,7 @@ def test_imshow_antialiased(fig_test, fig_ref,
ax.imshow(A, interpolation=interpolation)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_imshow_zoom(fig_test, fig_ref):
# should be less than 3 upsample, so should be nearest...
np.random.seed(19680801)
@@ -256,7 +256,7 @@ def test_image_alpha():
@mpl.style.context('mpl20')
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_imshow_alpha(fig_test, fig_ref):
np.random.seed(19680801)
@@ -426,7 +426,7 @@ def test_image_cliprect():
im.set_clip_path(rect)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_imshow_10_10_1(fig_test, fig_ref):
# 10x10x1 should be the same as 10x10
arr = np.arange(100).reshape((10, 10, 1))
@@ -1134,7 +1134,7 @@ def test_image_cursor_formatting():
assert im.format_cursor_data(data) == '[nan]'
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_image_array_alpha(fig_test, fig_ref):
"""Per-pixel alpha channel test."""
x = np.linspace(0, 1)
@@ -1287,7 +1287,7 @@ def test_imshow_quantitynd():
fig.canvas.draw()
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_norm_change(fig_test, fig_ref):
# LogNorm should not mask anything invalid permanently.
data = np.full((5, 5), 1, dtype=np.float64)
@@ -1316,7 +1316,7 @@ def test_norm_change(fig_test, fig_ref):
@pytest.mark.parametrize('x', [-1, 1])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_huge_range_log(fig_test, fig_ref, x):
# parametrize over bad lognorm -1 values and large range 1 -> 1e20
data = np.full((5, 5), x, dtype=np.float64)
@@ -1459,7 +1459,7 @@ def test_rgba_antialias():
cmap=cmap, vmin=-1.2, vmax=1.2)
-@check_figures_equal(extensions=('png', ))
+@check_figures_equal()
def test_upsample_interpolation_stage(fig_test, fig_ref):
"""
Show that interpolation_stage='auto' gives the same as 'data'
@@ -1479,7 +1479,7 @@ def test_upsample_interpolation_stage(fig_test, fig_ref):
interpolation_stage='auto')
-@check_figures_equal(extensions=('png', ))
+@check_figures_equal()
def test_downsample_interpolation_stage(fig_test, fig_ref):
"""
Show that interpolation_stage='auto' gives the same as 'rgba'
@@ -1515,7 +1515,7 @@ def test_rc_interpolation_stage():
@pytest.mark.parametrize(
'dim, size, msg', [['row', 2**23, r'2\*\*23 columns'],
['col', 2**24, r'2\*\*24 rows']])
-@check_figures_equal(extensions=('png', ))
+@check_figures_equal()
def test_large_image(fig_test, fig_ref, dim, size, msg, origin):
# Check that Matplotlib downsamples images that are too big for AGG
# See issue #19276. Currently the fix only works for png output but not
@@ -1547,7 +1547,7 @@ def test_large_image(fig_test, fig_ref, dim, size, msg, origin):
origin=origin)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_str_norms(fig_test, fig_ref):
t = np.random.rand(10, 10) * .8 + .1 # between 0 and 1
axts = fig_test.subplots(1, 5)
@@ -1714,7 +1714,7 @@ def test_resample_dtypes(dtype, ndim):
@pytest.mark.parametrize('intp_stage', ('data', 'rgba'))
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_interpolation_stage_rgba_respects_alpha_param(fig_test, fig_ref, intp_stage):
axs_tst = fig_test.subplots(2, 3)
axs_ref = fig_ref.subplots(2, 3)
diff --git a/lib/matplotlib/tests/test_inset.py b/lib/matplotlib/tests/test_inset.py
index 906231f799e6..e368a4af4e1b 100644
--- a/lib/matplotlib/tests/test_inset.py
+++ b/lib/matplotlib/tests/test_inset.py
@@ -14,7 +14,7 @@ def test_indicate_inset_no_args():
ax.indicate_inset()
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_zoom_inset_update_limits(fig_test, fig_ref):
# Updating the inset axes limits should also update the indicator #19768
ax_ref = fig_ref.add_subplot()
diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py
index 577ceaf8fd0d..9c708598e27c 100644
--- a/lib/matplotlib/tests/test_legend.py
+++ b/lib/matplotlib/tests/test_legend.py
@@ -42,7 +42,7 @@ def test_legend_ordereddict():
loc='center left', bbox_to_anchor=(1, .5))
-@image_comparison(['legend_auto1'], remove_text=True)
+@image_comparison(['legend_auto1.png'], remove_text=True)
def test_legend_auto1():
"""Test automatic legend placement"""
fig, ax = plt.subplots()
@@ -52,7 +52,7 @@ def test_legend_auto1():
ax.legend(loc='best')
-@image_comparison(['legend_auto2'], remove_text=True)
+@image_comparison(['legend_auto2.png'], remove_text=True)
def test_legend_auto2():
"""Test automatic legend placement"""
fig, ax = plt.subplots()
@@ -62,7 +62,7 @@ def test_legend_auto2():
ax.legend([b1[0], b2[0]], ['up', 'down'], loc='best')
-@image_comparison(['legend_auto3'])
+@image_comparison(['legend_auto3.png'])
def test_legend_auto3():
"""Test automatic legend placement"""
fig, ax = plt.subplots()
@@ -128,7 +128,7 @@ def test_legend_auto5():
assert_allclose(leg_bboxes[1].bounds, leg_bboxes[0].bounds)
-@image_comparison(['legend_various_labels'], remove_text=True)
+@image_comparison(['legend_various_labels.png'], remove_text=True)
def test_various_labels():
# tests all sorts of label types
fig = plt.figure()
@@ -187,7 +187,7 @@ def test_alpha_rcparam():
leg.legendPatch.set_facecolor([1, 0, 0, 0.5])
-@image_comparison(['fancy'], remove_text=True, tol=0.05)
+@image_comparison(['fancy.png'], remove_text=True, tol=0.05)
def test_fancy():
# Tolerance caused by changing default shadow "shade" from 0.3 to 1 - 0.7 =
# 0.30000000000000004
@@ -210,7 +210,7 @@ def test_framealpha():
plt.legend(framealpha=0.5)
-@image_comparison(['scatter_rc3', 'scatter_rc1'], remove_text=True)
+@image_comparison(['scatter_rc3.png', 'scatter_rc1.png'], remove_text=True)
def test_rc():
# using subplot triggers some offsetbox functionality untested elsewhere
plt.figure()
@@ -227,7 +227,7 @@ def test_rc():
title="My legend")
-@image_comparison(['legend_expand'], remove_text=True)
+@image_comparison(['legend_expand.png'], remove_text=True)
def test_legend_expand():
"""Test expand mode"""
legend_modes = [None, "expand"]
@@ -306,7 +306,7 @@ def test_reverse_legend_handles_and_labels():
assert actual_markers == list(reversed(markers))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_reverse_legend_display(fig_test, fig_ref):
"""Check that the rendered legend entries are reversed"""
ax = fig_test.subplots()
diff --git a/lib/matplotlib/tests/test_lines.py b/lib/matplotlib/tests/test_lines.py
index bbaea2510215..56bded0c6557 100644
--- a/lib/matplotlib/tests/test_lines.py
+++ b/lib/matplotlib/tests/test_lines.py
@@ -153,7 +153,7 @@ def test_drawstyle_variants():
ax.set(xlim=(0, 2), ylim=(0, 2))
-@check_figures_equal(extensions=('png',))
+@check_figures_equal()
def test_no_subslice_with_transform(fig_ref, fig_test):
ax = fig_ref.add_subplot()
x = np.arange(2000)
@@ -259,7 +259,7 @@ def test_step_markers(fig_test, fig_ref):
@pytest.mark.parametrize("parent", ["figure", "axes"])
-@check_figures_equal(extensions=('png',))
+@check_figures_equal()
def test_markevery(fig_test, fig_ref, parent):
np.random.seed(42)
x = np.linspace(0, 1, 14)
@@ -385,7 +385,7 @@ def test_input_copy(fig_test, fig_ref):
fig_ref.add_subplot().plot([0, 2, 4], [0, 2, 4], ".-", drawstyle="steps")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_markevery_prop_cycle(fig_test, fig_ref):
"""Test that we can set markevery prop_cycle."""
cases = [None, 8, (30, 8), [16, 24, 30], [0, -1],
diff --git a/lib/matplotlib/tests/test_marker.py b/lib/matplotlib/tests/test_marker.py
index 463ff1d05c96..f6e20c148897 100644
--- a/lib/matplotlib/tests/test_marker.py
+++ b/lib/matplotlib/tests/test_marker.py
@@ -63,7 +63,7 @@ def _recache(self):
self._snap_threshold = None
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_poly_marker(fig_test, fig_ref):
ax_test = fig_test.add_subplot()
ax_ref = fig_ref.add_subplot()
@@ -123,7 +123,7 @@ def test_star_marker():
# are corners and get a slight bevel. The reference markers are just singular
# lines without corners, so they have no bevel, and we need to add a slight
# tolerance.
-@check_figures_equal(tol=1.45)
+@check_figures_equal(extensions=['png', 'pdf', 'svg'], tol=1.45)
def test_asterisk_marker(fig_test, fig_ref, request):
ax_test = fig_test.add_subplot()
ax_ref = fig_ref.add_subplot()
@@ -159,7 +159,7 @@ def draw_ref_marker(y, style, size):
# The bullet mathtext marker is not quite a circle, so this is not a perfect match, but
# it is close enough to confirm that the text-based marker is centred correctly. But we
# still need a small tolerance to work around that difference.
-@check_figures_equal(extensions=['png'], tol=1.86)
+@check_figures_equal(tol=1.86)
def test_text_marker(fig_ref, fig_test):
ax_ref = fig_ref.add_subplot()
ax_test = fig_test.add_subplot()
@@ -168,7 +168,7 @@ def test_text_marker(fig_ref, fig_test):
ax_test.plot(0, 0, marker=r'$\bullet$', markersize=100, markeredgewidth=0)
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_marker_clipping(fig_ref, fig_test):
# Plotting multiple markers can trigger different optimized paths in
# backends, so compare single markers vs multiple to ensure they are
diff --git a/lib/matplotlib/tests/test_mathtext.py b/lib/matplotlib/tests/test_mathtext.py
index 4dcd08ba0718..9c0f8ee70c1f 100644
--- a/lib/matplotlib/tests/test_mathtext.py
+++ b/lib/matplotlib/tests/test_mathtext.py
@@ -264,7 +264,7 @@ def test_mathfont_rendering(baseline_images, fontset, index, text):
horizontalalignment='center', verticalalignment='center')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_short_long_accents(fig_test, fig_ref):
acc_map = _mathtext.Parser._accent_map
short_accs = [s for s in acc_map if len(s) == 1]
@@ -373,13 +373,13 @@ def test_single_minus_sign():
assert (t != 0xff).any() # assert that canvas is not all white.
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_spaces(fig_test, fig_ref):
fig_test.text(.5, .5, r"$1\,2\>3\ 4$")
fig_ref.text(.5, .5, r"$1\/2\:3~4$")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_operator_space(fig_test, fig_ref):
fig_test.text(0.1, 0.1, r"$\log 6$")
fig_test.text(0.1, 0.2, r"$\log(6)$")
@@ -402,13 +402,13 @@ def test_operator_space(fig_test, fig_ref):
fig_ref.text(0.1, 0.9, r"$\mathrm{sin}^2 \mathrm{\,cos}$")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_inverted_delimiters(fig_test, fig_ref):
fig_test.text(.5, .5, r"$\left)\right($", math_fontfamily="dejavusans")
fig_ref.text(.5, .5, r"$)($", math_fontfamily="dejavusans")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_genfrac_displaystyle(fig_test, fig_ref):
fig_test.text(0.1, 0.1, r"$\dfrac{2x}{3y}$")
@@ -554,7 +554,7 @@ def test_mathtext_operators():
fig.draw_without_rendering()
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_boldsymbol(fig_test, fig_ref):
fig_test.text(0.1, 0.2, r"$\boldsymbol{\mathrm{abc0123\alpha}}$")
fig_ref.text(0.1, 0.2, r"$\mathrm{abc0123\alpha}$")
diff --git a/lib/matplotlib/tests/test_patches.py b/lib/matplotlib/tests/test_patches.py
index a6b99ac5939a..4ed9222eb95e 100644
--- a/lib/matplotlib/tests/test_patches.py
+++ b/lib/matplotlib/tests/test_patches.py
@@ -178,7 +178,7 @@ def test_rotate_rect():
assert_almost_equal(rect1.get_verts(), new_verts)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_rotate_rect_draw(fig_test, fig_ref):
ax_test = fig_test.add_subplot()
ax_ref = fig_ref.add_subplot()
@@ -199,7 +199,7 @@ def test_rotate_rect_draw(fig_test, fig_ref):
assert rect_test.get_angle() == angle
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_dash_offset_patch_draw(fig_test, fig_ref):
ax_test = fig_test.add_subplot()
ax_ref = fig_ref.add_subplot()
@@ -241,7 +241,7 @@ def test_negative_rect():
assert_array_equal(np.roll(neg_vertices, 2, 0), pos_vertices)
-@image_comparison(['clip_to_bbox'])
+@image_comparison(['clip_to_bbox.png'])
def test_clip_to_bbox():
fig, ax = plt.subplots()
ax.set_xlim([-18, 20])
@@ -395,7 +395,7 @@ def test_patch_linestyle_accents():
fig.canvas.draw()
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_patch_linestyle_none(fig_test, fig_ref):
circle = mpath.Path.unit_circle()
@@ -583,7 +583,7 @@ def test_connection_patch():
ax2.add_artist(con)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_connection_patch_fig(fig_test, fig_ref):
# Test that connection patch can be added as figure artist, and that figure
# pixels count negative values from the top right corner (this API may be
@@ -606,7 +606,7 @@ def test_connection_patch_fig(fig_test, fig_ref):
fig_ref.add_artist(con)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_connection_patch_pixel_points(fig_test, fig_ref):
xyA_pts = (.3, .2)
xyB_pts = (-30, -20)
@@ -678,7 +678,7 @@ def test_contains_points():
# Currently fails with pdf/svg, probably because some parts assume a dpi of 72.
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_shadow(fig_test, fig_ref):
xy = np.array([.2, .3])
dxy = np.array([.1, .2])
diff --git a/lib/matplotlib/tests/test_pickle.py b/lib/matplotlib/tests/test_pickle.py
index eb47b2668101..82fc60e186c7 100644
--- a/lib/matplotlib/tests/test_pickle.py
+++ b/lib/matplotlib/tests/test_pickle.py
@@ -104,7 +104,7 @@ def _generate_complete_test_figure(fig_ref):
@mpl.style.context("default")
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_complete(fig_test, fig_ref):
_generate_complete_test_figure(fig_ref)
# plotting is done, now test its pickle-ability
@@ -136,7 +136,7 @@ def _pickle_load_subprocess():
@mpl.style.context("default")
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_pickle_load_from_subprocess(fig_test, fig_ref, tmp_path):
_generate_complete_test_figure(fig_ref)
diff --git a/lib/matplotlib/tests/test_polar.py b/lib/matplotlib/tests/test_polar.py
index 27bcd3fa11a8..a0969df5de90 100644
--- a/lib/matplotlib/tests/test_polar.py
+++ b/lib/matplotlib/tests/test_polar.py
@@ -7,7 +7,7 @@
from matplotlib.testing.decorators import image_comparison, check_figures_equal
-@image_comparison(['polar_axes'], style='default', tol=0.012)
+@image_comparison(['polar_axes.png'], style='default', tol=0.012)
def test_polar_annotations():
# You can specify the xypoint and the xytext in different positions and
# coordinate systems, and optionally turn on a connecting line and mark the
@@ -41,7 +41,7 @@ def test_polar_annotations():
ax.tick_params(axis='x', tick1On=True, tick2On=True, direction='out')
-@image_comparison(['polar_coords'], style='default', remove_text=True,
+@image_comparison(['polar_coords.png'], style='default', remove_text=True,
tol=0.014)
def test_polar_coord_annotations():
# You can also use polar notation on a cartesian axes. Here the native
@@ -144,7 +144,7 @@ def test_polar_units_2(fig_test, fig_ref):
ax.set(xlabel="rad", ylabel="km")
-@image_comparison(['polar_rmin'], style='default')
+@image_comparison(['polar_rmin.png'], style='default')
def test_polar_rmin():
r = np.arange(0, 3.0, 0.01)
theta = 2*np.pi*r
@@ -156,7 +156,7 @@ def test_polar_rmin():
ax.set_rmin(0.5)
-@image_comparison(['polar_negative_rmin'], style='default')
+@image_comparison(['polar_negative_rmin.png'], style='default')
def test_polar_negative_rmin():
r = np.arange(-3.0, 0.0, 0.01)
theta = 2*np.pi*r
@@ -168,7 +168,7 @@ def test_polar_negative_rmin():
ax.set_rmin(-3.0)
-@image_comparison(['polar_rorigin'], style='default')
+@image_comparison(['polar_rorigin.png'], style='default')
def test_polar_rorigin():
r = np.arange(0, 3.0, 0.01)
theta = 2*np.pi*r
@@ -200,7 +200,7 @@ def test_polar_invertedylim_rorigin():
ax.set_rorigin(3)
-@image_comparison(['polar_theta_position'], style='default')
+@image_comparison(['polar_theta_position.png'], style='default')
def test_polar_theta_position():
r = np.arange(0, 3.0, 0.01)
theta = 2*np.pi*r
@@ -212,7 +212,7 @@ def test_polar_theta_position():
ax.set_theta_direction('clockwise')
-@image_comparison(['polar_rlabel_position'], style='default')
+@image_comparison(['polar_rlabel_position.png'], style='default')
def test_polar_rlabel_position():
fig = plt.figure()
ax = fig.add_subplot(projection='polar')
@@ -227,7 +227,7 @@ def test_polar_title_position():
ax.set_title('foo')
-@image_comparison(['polar_theta_wedge'], style='default')
+@image_comparison(['polar_theta_wedge.png'], style='default')
def test_polar_theta_limits():
r = np.arange(0, 3.0, 0.01)
theta = 2*np.pi*r
@@ -260,7 +260,7 @@ def test_polar_theta_limits():
steps=[1, 2, 2.5, 5, 10])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_polar_rlim(fig_test, fig_ref):
ax = fig_test.subplots(subplot_kw={'polar': True})
ax.set_rlim(top=10)
@@ -271,7 +271,7 @@ def test_polar_rlim(fig_test, fig_ref):
ax.set_rmin(.5)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_polar_rlim_bottom(fig_test, fig_ref):
ax = fig_test.subplots(subplot_kw={'polar': True})
ax.set_rlim(bottom=[.5, 10])
@@ -331,7 +331,7 @@ def test_get_tightbbox_polar():
bb.extents, [107.7778, 29.2778, 539.7847, 450.7222], rtol=1e-03)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_polar_interpolation_steps_constant_r(fig_test, fig_ref):
# Check that an extra half-turn doesn't make any difference -- modulo
# antialiasing, which we disable here.
@@ -345,7 +345,7 @@ def test_polar_interpolation_steps_constant_r(fig_test, fig_ref):
.bar([0], [1], -2*np.pi, edgecolor="none", antialiased=False))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_polar_interpolation_steps_variable_r(fig_test, fig_ref):
l, = fig_test.add_subplot(projection="polar").plot([0, np.pi/2], [1, 2])
l.get_path()._interpolation_steps = 100
@@ -393,7 +393,7 @@ def test_axvspan():
assert span.get_path()._interpolation_steps > 1
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_remove_shared_polar(fig_ref, fig_test):
# Removing shared polar axes used to crash. Test removing them, keeping in
# both cases just the lower left axes of a grid to avoid running into a
@@ -491,8 +491,8 @@ def test_polar_neg_theta_lims():
@pytest.mark.parametrize("order", ["before", "after"])
-@image_comparison(baseline_images=['polar_errorbar'], remove_text=True,
- extensions=['png'], style='mpl20')
+@image_comparison(baseline_images=['polar_errorbar.png'], remove_text=True,
+ style='mpl20')
def test_polar_errorbar(order):
theta = np.arange(0, 2 * np.pi, np.pi / 8)
r = theta / np.pi / 2 + 0.5
diff --git a/lib/matplotlib/tests/test_preprocess_data.py b/lib/matplotlib/tests/test_preprocess_data.py
index 0684f0dbb9ae..c983d78786e1 100644
--- a/lib/matplotlib/tests/test_preprocess_data.py
+++ b/lib/matplotlib/tests/test_preprocess_data.py
@@ -267,7 +267,7 @@ class TestPlotTypes:
plotters = [Axes.scatter, Axes.bar, Axes.plot]
@pytest.mark.parametrize('plotter', plotters)
- @check_figures_equal(extensions=['png'])
+ @check_figures_equal()
def test_dict_unpack(self, plotter, fig_test, fig_ref):
x = [1, 2, 3]
y = [4, 5, 6]
@@ -278,7 +278,7 @@ def test_dict_unpack(self, plotter, fig_test, fig_ref):
plotter(fig_ref.subplots(), x, y)
@pytest.mark.parametrize('plotter', plotters)
- @check_figures_equal(extensions=['png'])
+ @check_figures_equal()
def test_data_kwarg(self, plotter, fig_test, fig_ref):
x = [1, 2, 3]
y = [4, 5, 6]
diff --git a/lib/matplotlib/tests/test_quiver.py b/lib/matplotlib/tests/test_quiver.py
index e28b04025b5e..cd1e1c3c7042 100644
--- a/lib/matplotlib/tests/test_quiver.py
+++ b/lib/matplotlib/tests/test_quiver.py
@@ -380,7 +380,7 @@ def draw_quiverkey_setzorder(fig, zorder=None):
@pytest.mark.parametrize('zorder', [0, 2, 5, None])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_quiverkey_zorder(fig_test, fig_ref, zorder):
draw_quiverkey_zorder_argument(fig_test, zorder=zorder)
draw_quiverkey_setzorder(fig_ref, zorder=zorder)
diff --git a/lib/matplotlib/tests/test_sankey.py b/lib/matplotlib/tests/test_sankey.py
index cbb7f516a65c..253bfa4fa093 100644
--- a/lib/matplotlib/tests/test_sankey.py
+++ b/lib/matplotlib/tests/test_sankey.py
@@ -91,7 +91,7 @@ def test_sankey2():
(0.75, -0.8599479)])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_sankey3(fig_test, fig_ref):
ax_test = fig_test.gca()
s_test = Sankey(ax=ax_test, flows=[0.25, -0.25, -0.25, 0.25, 0.5, -0.5],
diff --git a/lib/matplotlib/tests/test_simplification.py b/lib/matplotlib/tests/test_simplification.py
index 58b4d7a9b24f..bc9b46b14db2 100644
--- a/lib/matplotlib/tests/test_simplification.py
+++ b/lib/matplotlib/tests/test_simplification.py
@@ -248,7 +248,7 @@ def test_simplify_curve():
ax.set_ylim((0, 2))
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_closed_path_nan_removal(fig_test, fig_ref):
ax_test = fig_test.subplots(2, 2).flatten()
ax_ref = fig_ref.subplots(2, 2).flatten()
@@ -356,7 +356,7 @@ def test_closed_path_nan_removal(fig_test, fig_ref):
remove_ticks_and_titles(fig_ref)
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_closed_path_clipping(fig_test, fig_ref):
vertices = []
for roll in range(8):
diff --git a/lib/matplotlib/tests/test_skew.py b/lib/matplotlib/tests/test_skew.py
index 20ec6bf32b06..8527e474fa21 100644
--- a/lib/matplotlib/tests/test_skew.py
+++ b/lib/matplotlib/tests/test_skew.py
@@ -133,7 +133,7 @@ def upper_xlim(self):
register_projection(SkewXAxes)
-@image_comparison(['skew_axes'], remove_text=True)
+@image_comparison(['skew_axes.png'], remove_text=True)
def test_set_line_coll_dash_image():
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection='skewx')
@@ -145,7 +145,7 @@ def test_set_line_coll_dash_image():
ax.axvline(0, color='b')
-@image_comparison(['skew_rects'], remove_text=True,
+@image_comparison(['skew_rects.png'], remove_text=True,
tol=0 if platform.machine() == 'x86_64' else 0.009)
def test_skew_rectangle():
diff --git a/lib/matplotlib/tests/test_spines.py b/lib/matplotlib/tests/test_spines.py
index 9ce16fb39227..353aede00298 100644
--- a/lib/matplotlib/tests/test_spines.py
+++ b/lib/matplotlib/tests/test_spines.py
@@ -55,7 +55,7 @@ def set_val(self, val):
spines['top':]
-@image_comparison(['spines_axes_positions'])
+@image_comparison(['spines_axes_positions.png'])
def test_spines_axes_positions():
# SF bug 2852168
fig = plt.figure()
@@ -72,7 +72,7 @@ def test_spines_axes_positions():
ax.spines.bottom.set_color('none')
-@image_comparison(['spines_data_positions'])
+@image_comparison(['spines_data_positions.png'])
def test_spines_data_positions():
fig, ax = plt.subplots()
ax.spines.left.set_position(('data', -1.5))
@@ -83,7 +83,7 @@ def test_spines_data_positions():
ax.set_ylim([-2, 2])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_spine_nonlinear_data_positions(fig_test, fig_ref):
plt.style.use("default")
@@ -104,7 +104,7 @@ def test_spine_nonlinear_data_positions(fig_test, fig_ref):
ax.tick_params(axis="y", labelleft=False, left=False, right=True)
-@image_comparison(['spines_capstyle'])
+@image_comparison(['spines_capstyle.png'])
def test_spines_capstyle():
# issue 2542
plt.rc('axes', linewidth=20)
@@ -142,7 +142,7 @@ def test_label_without_ticks():
"X-Axis label not below the spine"
-@image_comparison(['black_axes'])
+@image_comparison(['black_axes.png'])
def test_spines_black_axes():
# GitHub #18804
plt.rcParams["savefig.pad_inches"] = 0
diff --git a/lib/matplotlib/tests/test_streamplot.py b/lib/matplotlib/tests/test_streamplot.py
index 84d4ba87ab77..697ee527f253 100644
--- a/lib/matplotlib/tests/test_streamplot.py
+++ b/lib/matplotlib/tests/test_streamplot.py
@@ -35,7 +35,7 @@ def test_startpoints():
plt.plot(start_x, start_y, 'ok')
-@image_comparison(['streamplot_colormap'], remove_text=True, style='mpl20',
+@image_comparison(['streamplot_colormap.png'], remove_text=True, style='mpl20',
tol=0.022)
def test_colormap():
X, Y, U, V = velocity_field()
@@ -54,7 +54,7 @@ def test_linewidth():
ax.streamplot(X, Y, U, V, density=[0.5, 1], color='k', linewidth=lw, num_arrows=2)
-@image_comparison(['streamplot_masks_and_nans'],
+@image_comparison(['streamplot_masks_and_nans.png'],
remove_text=True, style='mpl20')
def test_masks_and_nans():
X, Y, U, V = velocity_field()
diff --git a/lib/matplotlib/tests/test_subplots.py b/lib/matplotlib/tests/test_subplots.py
index 9fd887831106..a899110ac77a 100644
--- a/lib/matplotlib/tests/test_subplots.py
+++ b/lib/matplotlib/tests/test_subplots.py
@@ -174,7 +174,7 @@ def test_exceptions():
plt.subplots(2, 2, sharey='blah')
-@image_comparison(['subplots_offset_text'],
+@image_comparison(['subplots_offset_text.png'],
tol=0 if platform.machine() == 'x86_64' else 0.028)
def test_subplots_offsettext():
x = np.arange(0, 1e10, 1e9)
@@ -242,7 +242,7 @@ def test_dont_mutate_kwargs():
@pytest.mark.parametrize("width_ratios", [None, [1, 3, 2]])
@pytest.mark.parametrize("height_ratios", [None, [1, 2]])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_width_and_height_ratios(fig_test, fig_ref,
height_ratios, width_ratios):
fig_test.subplots(2, 3, height_ratios=height_ratios,
@@ -254,7 +254,7 @@ def test_width_and_height_ratios(fig_test, fig_ref,
@pytest.mark.parametrize("width_ratios", [None, [1, 3, 2]])
@pytest.mark.parametrize("height_ratios", [None, [1, 2]])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_width_and_height_ratios_mosaic(fig_test, fig_ref,
height_ratios, width_ratios):
mosaic_spec = [['A', 'B', 'B'], ['A', 'C', 'D']]
diff --git a/lib/matplotlib/tests/test_table.py b/lib/matplotlib/tests/test_table.py
index 11e8d07f9551..3cd60cd142bc 100644
--- a/lib/matplotlib/tests/test_table.py
+++ b/lib/matplotlib/tests/test_table.py
@@ -197,7 +197,7 @@ def test_table_cells():
plt.setp(table)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_table_bbox(fig_test, fig_ref):
data = [[2, 3],
[4, 5]]
@@ -224,7 +224,7 @@ def test_table_bbox(fig_test, fig_ref):
)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_table_unit(fig_test, fig_ref):
# test that table doesn't participate in unit machinery, instead uses repr/str
diff --git a/lib/matplotlib/tests/test_testing.py b/lib/matplotlib/tests/test_testing.py
index f13839d6b3b6..c438c54d26fa 100644
--- a/lib/matplotlib/tests/test_testing.py
+++ b/lib/matplotlib/tests/test_testing.py
@@ -14,7 +14,7 @@ def test_warn_to_fail():
@pytest.mark.parametrize("a", [1])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
@pytest.mark.parametrize("b", [1])
def test_parametrize_with_check_figure_equal(a, fig_ref, b, fig_test):
assert a == b
diff --git a/lib/matplotlib/tests/test_text.py b/lib/matplotlib/tests/test_text.py
index f2b48f08981e..79a9e2d66c46 100644
--- a/lib/matplotlib/tests/test_text.py
+++ b/lib/matplotlib/tests/test_text.py
@@ -671,7 +671,7 @@ def test_annotation_update():
rtol=1e-6)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_annotation_units(fig_test, fig_ref):
ax = fig_test.add_subplot()
ax.plot(datetime.now(), 1, "o") # Implicitly set axes extents.
@@ -761,7 +761,7 @@ def test_wrap_no_wrap():
assert text._get_wrapped_text() == 'non wrapped text'
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_buffer_size(fig_test, fig_ref):
# On old versions of the Agg renderer, large non-ascii single-character
# strings (here, "€") would be rendered clipped because the rendering
@@ -958,7 +958,7 @@ def test_annotation_antialiased():
assert annot4._antialiased == mpl.rcParams['text.antialiased']
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_annotate_and_offsetfrom_copy_input(fig_test, fig_ref):
# Both approaches place the text (10, 0) pixels away from the center of the line.
ax = fig_test.add_subplot()
@@ -974,7 +974,7 @@ def test_annotate_and_offsetfrom_copy_input(fig_test, fig_ref):
an_xy[:] = 2
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_text_antialiased_off_default_vs_manual(fig_test, fig_ref):
fig_test.text(0.5, 0.5, '6 inches x 2 inches',
antialiased=False)
@@ -983,7 +983,7 @@ def test_text_antialiased_off_default_vs_manual(fig_test, fig_ref):
fig_ref.text(0.5, 0.5, '6 inches x 2 inches')
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_text_antialiased_on_default_vs_manual(fig_test, fig_ref):
fig_test.text(0.5, 0.5, '6 inches x 2 inches', antialiased=True)
diff --git a/lib/matplotlib/tests/test_transforms.py b/lib/matplotlib/tests/test_transforms.py
index 9981c54f9025..99647e99bbde 100644
--- a/lib/matplotlib/tests/test_transforms.py
+++ b/lib/matplotlib/tests/test_transforms.py
@@ -1047,7 +1047,7 @@ def test_transformwrapper():
t.set(scale.LogTransform(10))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_scale_swapping(fig_test, fig_ref):
np.random.seed(19680801)
samples = np.random.normal(size=10)
diff --git a/lib/matplotlib/tests/test_units.py b/lib/matplotlib/tests/test_units.py
index cc71f685857e..d2350667e94f 100644
--- a/lib/matplotlib/tests/test_units.py
+++ b/lib/matplotlib/tests/test_units.py
@@ -191,7 +191,7 @@ def test_errorbar_mixed_units():
fig.canvas.draw()
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_subclass(fig_test, fig_ref):
class subdate(datetime):
pass
diff --git a/lib/matplotlib/tests/test_usetex.py b/lib/matplotlib/tests/test_usetex.py
index 342face4504f..c7658c4f42ac 100644
--- a/lib/matplotlib/tests/test_usetex.py
+++ b/lib/matplotlib/tests/test_usetex.py
@@ -42,13 +42,13 @@ def test_usetex():
ax.set_axis_off()
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_empty(fig_test, fig_ref):
mpl.rcParams['text.usetex'] = True
fig_test.text(.5, .5, "% a comment")
-@check_figures_equal()
+@check_figures_equal(extensions=['png', 'pdf', 'svg'])
def test_unicode_minus(fig_test, fig_ref):
mpl.rcParams['text.usetex'] = True
fig_test.text(.5, .5, "$-$")
diff --git a/lib/matplotlib/tests/test_widgets.py b/lib/matplotlib/tests/test_widgets.py
index 186c287e10f4..808863fd6a94 100644
--- a/lib/matplotlib/tests/test_widgets.py
+++ b/lib/matplotlib/tests/test_widgets.py
@@ -1126,7 +1126,7 @@ def test_check_radio_buttons_image():
check_props={'color': ['red', 'green', 'blue']})
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_radio_buttons(fig_test, fig_ref):
widgets.RadioButtons(fig_test.subplots(), ["tea", "coffee"])
ax = fig_ref.add_subplot(xticks=[], yticks=[])
@@ -1136,7 +1136,7 @@ def test_radio_buttons(fig_test, fig_ref):
ax.text(.25, 1/3, "coffee", transform=ax.transAxes, va="center")
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_radio_buttons_props(fig_test, fig_ref):
label_props = {'color': ['red'], 'fontsize': [24]}
radio_props = {'facecolor': 'green', 'edgecolor': 'blue', 'linewidth': 2}
@@ -1160,7 +1160,7 @@ def test_radio_button_active_conflict(ax):
assert mcolors.same_color(rb._buttons.get_facecolor(), ['green', 'none'])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_radio_buttons_activecolor_change(fig_test, fig_ref):
widgets.RadioButtons(fig_ref.subplots(), ['tea', 'coffee'],
activecolor='green')
@@ -1171,7 +1171,7 @@ def test_radio_buttons_activecolor_change(fig_test, fig_ref):
cb.activecolor = 'green'
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_check_buttons(fig_test, fig_ref):
widgets.CheckButtons(fig_test.subplots(), ["tea", "coffee"], [True, True])
ax = fig_ref.add_subplot(xticks=[], yticks=[])
@@ -1183,7 +1183,7 @@ def test_check_buttons(fig_test, fig_ref):
ax.text(.25, 1/3, "coffee", transform=ax.transAxes, va="center")
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_check_button_props(fig_test, fig_ref):
label_props = {'color': ['red'], 'fontsize': [24]}
frame_props = {'facecolor': 'green', 'edgecolor': 'blue', 'linewidth': 2}
@@ -1604,7 +1604,7 @@ def test_polygon_selector_redraw(ax, draw_bounding_box):
@pytest.mark.parametrize('draw_bounding_box', [False, True])
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_polygon_selector_verts_setter(fig_test, fig_ref, draw_bounding_box):
verts = [(0.1, 0.4), (0.5, 0.9), (0.3, 0.2)]
ax_test = fig_test.add_subplot()
diff --git a/lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py b/lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py
index d5598f880cb1..496ce74d72c0 100644
--- a/lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py
+++ b/lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py
@@ -660,7 +660,7 @@ def test_divider_errors(anchor, error, message):
anchor=anchor)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_mark_inset_unstales_viewlim(fig_test, fig_ref):
inset, full = fig_test.subplots(1, 2)
full.plot([0, 5], [0, 5])
diff --git a/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py b/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
index f8044141f142..b57dd689cf0e 100644
--- a/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
+++ b/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
@@ -36,7 +36,7 @@ def plot_cuboid(ax, scale):
ax.plot3D(*zip(start*np.array(scale), end*np.array(scale)))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_invisible_axes(fig_test, fig_ref):
ax = fig_test.subplots(subplot_kw=dict(projection='3d'))
ax.set_visible(False)
@@ -279,7 +279,7 @@ def test_contourf3d_fill():
@pytest.mark.parametrize('extend, levels', [['both', [2, 4, 6]],
['min', [2, 4, 6, 8]],
['max', [0, 2, 4, 6]]])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_contourf3d_extend(fig_test, fig_ref, extend, levels):
X, Y = np.meshgrid(np.arange(-2, 2, 0.25), np.arange(-2, 2, 0.25))
# Z is in the range [0, 8]
@@ -343,7 +343,7 @@ def test_lines3d():
ax.plot(x, y, z)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_plot_scalar(fig_test, fig_ref):
ax1 = fig_test.add_subplot(projection='3d')
ax1.plot([1], [1], "o")
@@ -393,7 +393,7 @@ def f(t):
ax.set_zlim3d(-1, 1)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_tight_layout_text(fig_test, fig_ref):
# text is currently ignored in tight layout. So the order of text() and
# tight_layout() calls should not influence the result.
@@ -445,7 +445,7 @@ def test_scatter3d_linewidth():
marker='o', linewidth=np.arange(10))
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_scatter3d_linewidth_modification(fig_ref, fig_test):
# Changing Path3DCollection linewidths with array-like post-creation
# should work correctly.
@@ -459,7 +459,7 @@ def test_scatter3d_linewidth_modification(fig_ref, fig_test):
linewidths=np.arange(10))
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_scatter3d_modification(fig_ref, fig_test):
# Changing Path3DCollection properties post-creation should work correctly.
ax_test = fig_test.add_subplot(projection='3d')
@@ -480,7 +480,7 @@ def test_scatter3d_modification(fig_ref, fig_test):
depthshade=False, s=75, linewidths=3)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_scatter3d_sorting(fig_ref, fig_test):
"""Test that marker properties are correctly sorted."""
@@ -537,7 +537,7 @@ def test_scatter3d_sorting(fig_ref, fig_test):
@pytest.mark.parametrize('azim', [-50, 130]) # yellow first, blue first
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_marker_draw_order_data_reversed(fig_test, fig_ref, azim):
"""
Test that the draw order does not depend on the data point order.
@@ -557,7 +557,7 @@ def test_marker_draw_order_data_reversed(fig_test, fig_ref, azim):
ax.view_init(elev=0, azim=azim, roll=0)
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_marker_draw_order_view_rotated(fig_test, fig_ref):
"""
Test that the draw order changes with the direction.
@@ -708,7 +708,7 @@ def test_surface3d_masked():
ax.view_init(30, -80, 0)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_plot_scatter_masks(fig_test, fig_ref):
x = np.linspace(0, 10, 100)
y = np.linspace(0, 10, 100)
@@ -726,7 +726,7 @@ def test_plot_scatter_masks(fig_test, fig_ref):
ax_ref.plot(x, y, z)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_plot_surface_None_arg(fig_test, fig_ref):
x, y = np.meshgrid(np.arange(5), np.arange(5))
z = x + y
@@ -773,7 +773,7 @@ def test_text3d():
ax.set_zlabel('Z axis')
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_text3d_modification(fig_ref, fig_test):
# Modifying the Text position after the fact should work the same as
# setting it directly.
@@ -906,7 +906,7 @@ def test_quiver3d():
ax.set_zlim(-1, 5)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_quiver3d_empty(fig_test, fig_ref):
fig_ref.add_subplot(projection='3d')
x = y = z = u = v = w = []
@@ -958,7 +958,7 @@ def test_patch_modification():
assert mcolors.same_color(circle.get_facecolor(), (1, 0, 0, 1))
-@check_figures_equal(extensions=['png'])
+@check_figures_equal()
def test_patch_collection_modification(fig_test, fig_ref):
# Test that modifying Patch3DCollection properties after creation works.
patch1 = Circle((0, 0), 0.05)
@@ -1328,7 +1328,7 @@ def test_unautoscale(axis, auto):
np.testing.assert_array_equal(get_lim(), (-0.5, 0.5))
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_culling(fig_test, fig_ref):
xmins = (-100, -50)
for fig, xmin in zip((fig_test, fig_ref), xmins):
@@ -1383,7 +1383,7 @@ def test_axes3d_isometric():
ax.grid(True)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_axlim_clip(fig_test, fig_ref):
# With axlim clipping
ax = fig_test.add_subplot(projection="3d")
@@ -1581,7 +1581,7 @@ def test_line3d_set_get_data_3d():
np.testing.assert_array_equal((x, y, np.zeros_like(z)), line.get_data_3d())
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_inverted(fig_test, fig_ref):
# Plot then invert.
ax = fig_test.add_subplot(projection="3d")
@@ -1630,7 +1630,7 @@ def test_ax3d_tickcolour():
assert tick.tick1line._color == 'red'
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_ticklabel_format(fig_test, fig_ref):
axs = fig_test.subplots(4, 5, subplot_kw={"projection": "3d"})
for ax in axs.flat:
@@ -1670,7 +1670,7 @@ def get_formatters(ax, names):
not mpl.rcParams["axes.formatter.use_mathtext"])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_quiver3D_smoke(fig_test, fig_ref):
pivot = "middle"
# Make the grid
@@ -1867,7 +1867,7 @@ def test_set_zlim():
ax.set_zlim(top=0, zmax=1)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_shared_view(fig_test, fig_ref):
elev, azim, roll = 5, 20, 30
ax1 = fig_test.add_subplot(131, projection="3d")
@@ -2173,7 +2173,7 @@ def test_toolbar_zoom_pan(tool, button, key, expected):
@mpl.style.context('default')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_scalarmap_update(fig_test, fig_ref):
x, y, z = np.array(list(itertools.product(*[np.arange(0, 5, 1),
@@ -2373,7 +2373,7 @@ def test_margins_errors(err, args, kwargs, match):
ax.margins(*args, **kwargs)
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_text_3d(fig_test, fig_ref):
ax = fig_ref.add_subplot(projection="3d")
txt = Text(0.5, 0.5, r'Foo bar $\int$')
@@ -2394,7 +2394,7 @@ def test_draw_single_lines_from_Nx1():
ax.plot([[0], [1]], [[0], [1]], [[0], [1]])
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_pathpatch_3d(fig_test, fig_ref):
ax = fig_ref.add_subplot(projection="3d")
path = Path.unit_rectangle()
@@ -2608,7 +2608,7 @@ def test_panecolor_rcparams():
fig.add_subplot(projection='3d')
-@check_figures_equal(extensions=["png"])
+@check_figures_equal()
def test_mutating_input_arrays_y_and_z(fig_test, fig_ref):
"""
Test to see if the `z` axis does not get mutated