Skip to content

Commit 0cab756

Browse files
committed
Remove deprecated plot_date calls
These were deprecated in Matplotlib 3.9.
1 parent 78a2ef2 commit 0cab756

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/tests/plotting/test_datetimelike.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,13 +1432,11 @@ def test_mpl_nopandas(self):
14321432
values1 = np.arange(10.0, 11.0, 0.5)
14331433
values2 = np.arange(11.0, 12.0, 0.5)
14341434

1435-
kw = {"fmt": "-", "lw": 4}
1436-
14371435
_, ax = mpl.pyplot.subplots()
1438-
ax.plot_date([x.toordinal() for x in dates], values1, **kw)
1439-
ax.plot_date([x.toordinal() for x in dates], values2, **kw)
1440-
1441-
line1, line2 = ax.get_lines()
1436+
line1, line2, = ax.plot(
1437+
[x.toordinal() for x in dates], values1, "-",
1438+
[x.toordinal() for x in dates], values2, "-",
1439+
linewidth=4)
14421440

14431441
exp = np.array([x.toordinal() for x in dates], dtype=np.float64)
14441442
tm.assert_numpy_array_equal(line1.get_xydata()[:, 0], exp)

0 commit comments

Comments
 (0)