From a9f7d92ec6034e465f0e0bf0a60f16f0514a107d Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 26 Jun 2023 09:51:40 +0200 Subject: [PATCH] Add note to remove texts in baselines when they are regenerated. --- lib/matplotlib/tests/test_image.py | 1 + lib/matplotlib/tests/test_legend.py | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py index 49b8570587fd..0d58f7ad4ee8 100644 --- a/lib/matplotlib/tests/test_image.py +++ b/lib/matplotlib/tests/test_image.py @@ -27,6 +27,7 @@ @image_comparison(['image_interps'], style='mpl20') def test_image_interps(): """Make the basic nearest, bilinear and bicubic interps.""" + # Remove texts when this image is regenerated. # Remove this line when this test image is regenerated. plt.rcParams['text.kerning_factor'] = 6 diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py index 801254332dd6..0e5ebf75ddc4 100644 --- a/lib/matplotlib/tests/test_legend.py +++ b/lib/matplotlib/tests/test_legend.py @@ -254,6 +254,7 @@ def test_legend_expand(): @image_comparison(['hatching'], remove_text=True, style='default') def test_hatching(): + # Remove legend texts when this image is regenerated. # Remove this line when this test image is regenerated. plt.rcParams['text.kerning_factor'] = 6