@@ -228,17 +228,27 @@ def test_hlines(self):
228228 '2023-07-28' ,
229229 '2023-12-24' ]
230230 dates = [datetime .datetime (2023 , m * 2 , 10 ) for m in range (1 , 6 )]
231+ date_start = [datetime .datetime (2023 , 6 , d ) for d in range (5 , 30 , 5 )]
232+ date_end = [datetime .datetime (2023 , 7 , d ) for d in range (5 , 30 , 5 )]
231233 npDates = [np .datetime64 (s ) for s in dateStrs ]
232234 axs [0 , 0 ].hlines (y = dates ,
233235 xmin = [0.1 , 0.2 , 0.3 , 0.4 , 0.5 ],
234236 xmax = [0.5 , 0.6 , 0.7 , 0.8 , 0.9 ])
235- axs [0 , 1 ].hlines (y = dates , xmin = 0.2 , xmax = 0.8 )
236- axs [0 , 2 ].hlines (dates , xmin = 0 , xmax = 1 )
237+ axs [0 , 1 ].hlines (dates ,
238+ xmin = datetime .datetime (2020 , 5 , 10 ),
239+ xmax = datetime .datetime (2020 , 5 , 31 ))
240+ axs [0 , 2 ].hlines (dates ,
241+ xmin = date_start ,
242+ xmax = date_end )
237243 axs [1 , 0 ].hlines (y = npDates ,
238244 xmin = [0.5 , 0.6 , 0.7 , 0.8 , 0.9 ],
239245 xmax = [0.1 , 0.2 , 0.3 , 0.4 , 0.5 ])
240- axs [1 , 1 ].hlines (y = npDates , xmin = 0.45 , xmax = 0.65 )
241- axs [1 , 2 ].hlines (npDates , xmin = 0 , xmax = 1 )
246+ axs [1 , 2 ].hlines (y = npDates ,
247+ xmin = date_start ,
248+ xmax = date_end )
249+ axs [1 , 1 ].hlines (npDates ,
250+ xmin = datetime .datetime (2020 , 5 , 10 ),
251+ xmax = datetime .datetime (2020 , 5 , 31 ))
242252
243253 @pytest .mark .xfail (reason = "Test for imshow not written yet" )
244254 @mpl .style .context ("default" )
0 commit comments