File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,16 @@ def test_two_plots_with_x_str(self):
150
150
ax = df2 .plot (ax = ax )
151
151
152
152
line1 , line2 = ax .lines
153
+
153
154
# xdata should not be touched (Earlier it was [0, 1])
154
- np .testing .assert_equal (line1 .get_xdata (), x1 )
155
- np .testing .assert_equal (line1 .get_ydata (), y1 )
156
- np .testing .assert_equal (line2 .get_xdata (), x2 )
157
- np .testing .assert_equal (line2 .get_ydata (), y2 )
155
+ tm .assert_numpy_array_equal (line1 .get_xdata (), np .array (x1 ),
156
+ check_dtype = False )
157
+ tm .assert_numpy_array_equal (line1 .get_ydata (), np .array (y1 ),
158
+ check_dtype = False )
159
+ tm .assert_numpy_array_equal (line2 .get_xdata (), np .array (x2 ),
160
+ check_dtype = False )
161
+ tm .assert_numpy_array_equal (line2 .get_ydata (), np .array (y2 ),
162
+ check_dtype = False )
158
163
159
164
# GH 15516
160
165
def test_mpl2_color_cycle_str (self ):
You can’t perform that action at this time.
0 commit comments