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