Skip to content

Commit 925da2b

Browse files
committed
Changed defaults back to -5, 5 for failing test cases
1 parent 8df22a7 commit 925da2b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ def test_single_point():
547547

548548
@image_comparison(['single_date.png'], style='mpl20')
549549
def test_single_date():
550+
# use former defaults to match existing baseline image
551+
plt.rcParams['axes.formatter.limits'] = -7, 7
552+
550553
time1 = [721964.0]
551554
data1 = [-65.54]
552555

lib/matplotlib/tests/test_units.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def default_units(value, axis):
7676
@image_comparison(['plot_pint.png'], remove_text=False, style='mpl20',
7777
tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
7878
def test_numpy_facade(quantity_converter):
79+
# use former defaults to match existing baseline image
80+
plt.rcParams['axes.formatter.limits'] = -7, 7
81+
7982
# Register the class
8083
munits.registry[Quantity] = quantity_converter
8184

0 commit comments

Comments
 (0)