Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3966ad4

Browse files
authored
Fixed formatting.
1 parent b2e12e9 commit 3966ad4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/matplotlib/tests/test_datetime.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,15 @@ def test_pcolorfast(self):
522522
np.random.seed(19680801)
523523

524524
'''
525-
Directly inputting either datetime.datetime or numpy.datetime64 without using date2num() seems to always generate compile errors for pcolorfast().
526-
I have used date2num() to ensure that the graph prints correctly despite that such operations may defy the purpose of conducting such tests.
525+
Directly inputting either datetime.datetime or numpy.datetime64
526+
without using date2num() seems to always generate compile errors for pcolorfast().
527+
I have used date2num() to ensure that the graph prints correctly
528+
despite that such operations may defy the purpose of conducting such tests.
527529
'''
528530
basedate_x = datetime.datetime(2023, 12, 6, 1, 30, 30)
529531
basedate_y = datetime.datetime(2024, 5, 5, 12, 15, 45)
530-
dates_x = [dt.date2num(basedate_x + datetime.timedelta(days=1*i, hours=6*i, minutes=20*i,seconds=0)) for i in range(10)]
531-
dates_y = [dt.date2num(basedate_y + datetime.timedelta(days=1*i, hours=8*i, minutes=30*i,seconds=0)) for i in range(10)]
532+
dates_x = [dt.date2num(basedate_x + datetime.timedelta(days=1*i, hours=6*i, minutes=20*i)) for i in range(10)]
533+
dates_y = [dt.date2num(basedate_y + datetime.timedelta(days=1*i, hours=8*i, minutes=30*i)) for i in range(10)]
532534
data = np.random.rand(0, 100)
533535

534536
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)