@@ -381,7 +381,7 @@ def test_df_series_secondary_legend(self):
381
381
_ , ax = self .plt .subplots ()
382
382
ax = df .plot (ax = ax )
383
383
s .plot (legend = True , secondary_y = True , ax = ax )
384
- # both legends are dran on left ax
384
+ # both legends are drawn on left ax
385
385
# left and right axis must be visible
386
386
self ._check_legend_labels (ax , labels = ["a" , "b" , "c" , "x (right)" ])
387
387
assert ax .get_yaxis ().get_visible ()
@@ -392,7 +392,7 @@ def test_df_series_secondary_legend(self):
392
392
_ , ax = self .plt .subplots ()
393
393
ax = df .plot (ax = ax )
394
394
s .plot (ax = ax , legend = True , secondary_y = True )
395
- # both legends are dran on left ax
395
+ # both legends are drawn on left ax
396
396
# left and right axis must be visible
397
397
self ._check_legend_labels (ax , labels = ["a" , "b" , "c" , "x (right)" ])
398
398
assert ax .get_yaxis ().get_visible ()
@@ -403,7 +403,7 @@ def test_df_series_secondary_legend(self):
403
403
_ , ax = self .plt .subplots ()
404
404
ax = df .plot (secondary_y = True , ax = ax )
405
405
s .plot (legend = True , secondary_y = True , ax = ax )
406
- # both legends are dran on left ax
406
+ # both legends are drawn on left ax
407
407
# left axis must be invisible and right axis must be visible
408
408
expected = ["a (right)" , "b (right)" , "c (right)" , "x (right)" ]
409
409
self ._check_legend_labels (ax .left_ax , labels = expected )
@@ -415,7 +415,7 @@ def test_df_series_secondary_legend(self):
415
415
_ , ax = self .plt .subplots ()
416
416
ax = df .plot (secondary_y = True , ax = ax )
417
417
s .plot (ax = ax , legend = True , secondary_y = True )
418
- # both legends are dran on left ax
418
+ # both legends are drawn on left ax
419
419
# left axis must be invisible and right axis must be visible
420
420
expected = ["a (right)" , "b (right)" , "c (right)" , "x (right)" ]
421
421
self ._check_legend_labels (ax .left_ax , expected )
@@ -427,7 +427,7 @@ def test_df_series_secondary_legend(self):
427
427
_ , ax = self .plt .subplots ()
428
428
ax = df .plot (secondary_y = True , mark_right = False , ax = ax )
429
429
s .plot (ax = ax , legend = True , secondary_y = True )
430
- # both legends are dran on left ax
430
+ # both legends are drawn on left ax
431
431
# left axis must be invisible and right axis must be visible
432
432
expected = ["a" , "b" , "c" , "x (right)" ]
433
433
self ._check_legend_labels (ax .left_ax , expected )
@@ -798,7 +798,7 @@ def test_xlabel_ylabel_series(self, kind, index_name, old_label, new_label):
798
798
assert ax .get_ylabel () == ""
799
799
assert ax .get_xlabel () == old_label
800
800
801
- # old xlabel will be overriden and assigned ylabel will be used as ylabel
801
+ # old xlabel will be overridden and assigned ylabel will be used as ylabel
802
802
ax = ser .plot (kind = kind , ylabel = new_label , xlabel = new_label )
803
803
assert ax .get_ylabel () == new_label
804
804
assert ax .get_xlabel () == new_label
0 commit comments