We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e89490 commit b6ca76aCopy full SHA for b6ca76a
pandas/tests/plotting/test_datetimelike.py
@@ -1349,6 +1349,22 @@ def test_hist(self):
1349
w2 = np.arange(0, 1, .1)[::-1]
1350
self.plt.hist([x, x], weights=[w1, w2])
1351
1352
+ @slow
1353
+ def test_overlapping_datetime(self):
1354
+ # GB 6608
1355
+ s1 = Series([1, 2, 3], index=[datetime(1995, 12, 31),
1356
+ datetime(2000, 12, 31),
1357
+ datetime(2005, 12, 31)])
1358
+ s2 = Series([1, 2, 3], index=[datetime(1997, 12, 31),
1359
+ datetime(2003, 12, 31),
1360
+ datetime(2008, 12, 31)])
1361
+
1362
+ # plot first series, then add the second series to those axes,
1363
+ # then try adding the first series again
1364
+ ax = s1.plot()
1365
+ s2.plot(ax=ax)
1366
+ s1.plot(ax=ax)
1367
1368
1369
def _check_plot_works(f, freq=None, series=None, *args, **kwargs):
1370
import matplotlib.pyplot as plt
0 commit comments