Skip to content

Commit 0da19e9

Browse files
committed
Use default style
1 parent 7f4e4b5 commit 0da19e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
import pytest
88

9-
from matplotlib import rc_context
9+
from matplotlib import rc_context, style
1010
import matplotlib.dates as mdates
1111
import matplotlib.pyplot as plt
1212
from matplotlib.testing.decorators import image_comparison
@@ -325,14 +325,14 @@ def callable_formatting_function(dates, _):
325325
(datetime.timedelta(weeks=52 * 200),
326326
[r'$\mathdefault{%d}$' % year for year in range(1990, 2171, 20)]),
327327
(datetime.timedelta(days=30),
328-
[r'Jan$\mathdefault{\;%02d\;1990}$' % day for day in range(1, 32, 3)]),
328+
[r'$\mathdefault{1990{-}01{-}%02d}$' % day for day in range(1, 32, 3)]),
329329
(datetime.timedelta(hours=20),
330-
[r'$\mathdefault{%02d{:}00{:}00}$' % hour for hour in range(0, 21, 2)]),
330+
[r'$\mathdefault{01{-}01\;%02d}$' % hour for hour in range(0, 21, 2)]),
331331
(datetime.timedelta(minutes=10),
332332
[r'$\mathdefault{01\;00{:}%02d}$' % minu for minu in range(0, 11)]),
333333
])
334334
def test_date_formatter_usetex(delta, expected):
335-
plt.rcParams["date.autoformatter.minute"] = "%d %H:%M"
335+
style.use("default")
336336

337337
d1 = datetime.datetime(1990, 1, 1)
338338
d2 = d1 + delta

0 commit comments

Comments
 (0)