@@ -271,8 +271,7 @@ def callable_formatting_function(dates, _):
271
271
(datetime .timedelta (weeks = 52 * 200 ),
272
272
[r'$\mathdefault{%d}$' % (year ,) for year in range (1990 , 2171 , 20 )]),
273
273
(datetime .timedelta (days = 30 ),
274
- [r'$\mathdefault{}$Jan$\mathdefault{ %02d 1990}$' % (day ,)
275
- for day in range (1 , 32 , 3 )]),
274
+ [r'Jan$\mathdefault{ %02d 1990}$' % (day ,) for day in range (1 , 32 , 3 )]),
276
275
(datetime .timedelta (hours = 20 ),
277
276
[r'$\mathdefault{%02d:00:00}$' % (hour ,) for hour in range (0 , 21 , 2 )]),
278
277
])
@@ -285,7 +284,6 @@ def test_date_formatter_usetex(delta, expected):
285
284
locator .axis .set_view_interval (mdates .date2num (d1 ), mdates .date2num (d2 ))
286
285
287
286
formatter = mdates .AutoDateFormatter (locator , usetex = True )
288
- print ([formatter (loc ) for loc in locator ()])
289
287
assert [formatter (loc ) for loc in locator ()] == expected
290
288
291
289
@@ -552,16 +550,15 @@ def test_concise_formatter_show_offset(t_delta, expected):
552
550
(datetime .timedelta (weeks = 52 * 200 ),
553
551
['$\\ mathdefault{%d}$' % (t , ) for t in range (1980 , 2201 , 20 )]),
554
552
(datetime .timedelta (days = 40 ),
555
- ['$\\ mathdefault{}$Jan$\\ mathdefault{}$' , '$\\ mathdefault{05}$' ,
556
- '$\\ mathdefault{09}$' , '$\\ mathdefault{13}$' , '$\\ mathdefault{17}$' ,
557
- '$\\ mathdefault{21}$' , '$\\ mathdefault{25}$' , '$\\ mathdefault{29}$' ,
558
- '$\\ mathdefault{}$Feb$\\ mathdefault{}$' , '$\\ mathdefault{05}$' ,
559
- '$\\ mathdefault{09}$' ]),
553
+ ['Jan' , '$\\ mathdefault{05}$' , '$\\ mathdefault{09}$' ,
554
+ '$\\ mathdefault{13}$' , '$\\ mathdefault{17}$' , '$\\ mathdefault{21}$' ,
555
+ '$\\ mathdefault{25}$' , '$\\ mathdefault{29}$' , 'Feb' ,
556
+ '$\\ mathdefault{05}$' , '$\\ mathdefault{09}$' ]),
560
557
(datetime .timedelta (hours = 40 ),
561
- ['$ \\ mathdefault{}$ Jan$\\ mathdefault{{-}01}$' , '$\\ mathdefault{04:00}$' ,
558
+ ['Jan$\\ mathdefault{{-}01}$' , '$\\ mathdefault{04:00}$' ,
562
559
'$\\ mathdefault{08:00}$' , '$\\ mathdefault{12:00}$' ,
563
560
'$\\ mathdefault{16:00}$' , '$\\ mathdefault{20:00}$' ,
564
- '$ \\ mathdefault{}$ Jan$\\ mathdefault{{-}02}$' , '$\\ mathdefault{04:00}$' ,
561
+ 'Jan$\\ mathdefault{{-}02}$' , '$\\ mathdefault{04:00}$' ,
565
562
'$\\ mathdefault{08:00}$' , '$\\ mathdefault{12:00}$' ,
566
563
'$\\ mathdefault{16:00}$' ]),
567
564
(datetime .timedelta (seconds = 2 ),
0 commit comments