@@ -542,8 +542,8 @@ def test_gaps(self):
542542 ts .plot (ax = ax )
543543 lines = ax .get_lines ()
544544 assert len (lines ) == 1
545- l = lines [0 ]
546- data = l .get_xydata ()
545+ line = lines [0 ]
546+ data = line .get_xydata ()
547547 assert isinstance (data , np .ma .core .MaskedArray )
548548 mask = data .mask
549549 assert mask [5 :25 , 1 ].all ()
@@ -557,8 +557,8 @@ def test_gaps(self):
557557 ax = ts .plot (ax = ax )
558558 lines = ax .get_lines ()
559559 assert len (lines ) == 1
560- l = lines [0 ]
561- data = l .get_xydata ()
560+ line = lines [0 ]
561+ data = line .get_xydata ()
562562 assert isinstance (data , np .ma .core .MaskedArray )
563563 mask = data .mask
564564 assert mask [2 :5 , 1 ].all ()
@@ -572,8 +572,8 @@ def test_gaps(self):
572572 ser .plot (ax = ax )
573573 lines = ax .get_lines ()
574574 assert len (lines ) == 1
575- l = lines [0 ]
576- data = l .get_xydata ()
575+ line = lines [0 ]
576+ data = line .get_xydata ()
577577 assert isinstance (data , np .ma .core .MaskedArray )
578578 mask = data .mask
579579 assert mask [2 :5 , 1 ].all ()
@@ -592,8 +592,8 @@ def test_gap_upsample(self):
592592 lines = ax .get_lines ()
593593 assert len (lines ) == 1
594594 assert len (ax .right_ax .get_lines ()) == 1
595- l = lines [0 ]
596- data = l .get_xydata ()
595+ line = lines [0 ]
596+ data = line .get_xydata ()
597597
598598 assert isinstance (data , np .ma .core .MaskedArray )
599599 mask = data .mask
@@ -608,8 +608,8 @@ def test_secondary_y(self):
608608 assert hasattr (ax , 'left_ax' )
609609 assert not hasattr (ax , 'right_ax' )
610610 axes = fig .get_axes ()
611- l = ax .get_lines ()[0 ]
612- xp = Series (l .get_ydata (), l .get_xdata ())
611+ line = ax .get_lines ()[0 ]
612+ xp = Series (line .get_ydata (), line .get_xdata ())
613613 assert_series_equal (ser , xp )
614614 assert ax .get_yaxis ().get_ticks_position () == 'right'
615615 assert not axes [0 ].get_yaxis ().get_visible ()
@@ -639,8 +639,8 @@ def test_secondary_y_ts(self):
639639 assert hasattr (ax , 'left_ax' )
640640 assert not hasattr (ax , 'right_ax' )
641641 axes = fig .get_axes ()
642- l = ax .get_lines ()[0 ]
643- xp = Series (l .get_ydata (), l .get_xdata ()).to_timestamp ()
642+ line = ax .get_lines ()[0 ]
643+ xp = Series (line .get_ydata (), line .get_xdata ()).to_timestamp ()
644644 assert_series_equal (ser , xp )
645645 assert ax .get_yaxis ().get_ticks_position () == 'right'
646646 assert not axes [0 ].get_yaxis ().get_visible ()
@@ -950,25 +950,25 @@ def test_from_resampling_area_line_mixed(self):
950950 dtype = np .float64 )
951951 expected_y = np .zeros (len (expected_x ), dtype = np .float64 )
952952 for i in range (3 ):
953- l = ax .lines [i ]
954- assert PeriodIndex (l .get_xdata ()).freq == idxh .freq
955- tm .assert_numpy_array_equal (l .get_xdata (orig = False ),
953+ line = ax .lines [i ]
954+ assert PeriodIndex (line .get_xdata ()).freq == idxh .freq
955+ tm .assert_numpy_array_equal (line .get_xdata (orig = False ),
956956 expected_x )
957957 # check stacked values are correct
958958 expected_y += low [i ].values
959- tm .assert_numpy_array_equal (l .get_ydata (orig = False ),
959+ tm .assert_numpy_array_equal (line .get_ydata (orig = False ),
960960 expected_y )
961961
962962 # check high dataframe result
963963 expected_x = idxh .to_period ().asi8 .astype (np .float64 )
964964 expected_y = np .zeros (len (expected_x ), dtype = np .float64 )
965965 for i in range (3 ):
966- l = ax .lines [3 + i ]
967- assert PeriodIndex (data = l .get_xdata ()).freq == idxh .freq
968- tm .assert_numpy_array_equal (l .get_xdata (orig = False ),
966+ line = ax .lines [3 + i ]
967+ assert PeriodIndex (data = line .get_xdata ()).freq == idxh .freq
968+ tm .assert_numpy_array_equal (line .get_xdata (orig = False ),
969969 expected_x )
970970 expected_y += high [i ].values
971- tm .assert_numpy_array_equal (l .get_ydata (orig = False ),
971+ tm .assert_numpy_array_equal (line .get_ydata (orig = False ),
972972 expected_y )
973973
974974 # high to low
@@ -981,12 +981,12 @@ def test_from_resampling_area_line_mixed(self):
981981 expected_x = idxh .to_period ().asi8 .astype (np .float64 )
982982 expected_y = np .zeros (len (expected_x ), dtype = np .float64 )
983983 for i in range (3 ):
984- l = ax .lines [i ]
985- assert PeriodIndex (data = l .get_xdata ()).freq == idxh .freq
986- tm .assert_numpy_array_equal (l .get_xdata (orig = False ),
984+ line = ax .lines [i ]
985+ assert PeriodIndex (data = line .get_xdata ()).freq == idxh .freq
986+ tm .assert_numpy_array_equal (line .get_xdata (orig = False ),
987987 expected_x )
988988 expected_y += high [i ].values
989- tm .assert_numpy_array_equal (l .get_ydata (orig = False ),
989+ tm .assert_numpy_array_equal (line .get_ydata (orig = False ),
990990 expected_y )
991991
992992 # check low dataframe result
@@ -995,12 +995,12 @@ def test_from_resampling_area_line_mixed(self):
995995 dtype = np .float64 )
996996 expected_y = np .zeros (len (expected_x ), dtype = np .float64 )
997997 for i in range (3 ):
998- l = ax .lines [3 + i ]
999- assert PeriodIndex (data = l .get_xdata ()).freq == idxh .freq
1000- tm .assert_numpy_array_equal (l .get_xdata (orig = False ),
998+ lines = ax .lines [3 + i ]
999+ assert PeriodIndex (data = lines .get_xdata ()).freq == idxh .freq
1000+ tm .assert_numpy_array_equal (lines .get_xdata (orig = False ),
10011001 expected_x )
10021002 expected_y += low [i ].values
1003- tm .assert_numpy_array_equal (l .get_ydata (orig = False ),
1003+ tm .assert_numpy_array_equal (lines .get_ydata (orig = False ),
10041004 expected_y )
10051005
10061006 @pytest .mark .slow
0 commit comments