Skip to content

Commit

Permalink
BUG: strange timeseries plot behavior (pandas-dev#16461)
Browse files Browse the repository at this point in the history
validation tests, closes pandas-dev#6608.
  • Loading branch information
Hugues Valois authored and stangirala committed Jun 11, 2017
1 parent 6e89490 commit b6ca76a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pandas/tests/plotting/test_datetimelike.py
Expand Up @@ -1349,6 +1349,22 @@ def test_hist(self):
w2 = np.arange(0, 1, .1)[::-1]
self.plt.hist([x, x], weights=[w1, w2])

@slow
def test_overlapping_datetime(self):
# GB 6608
s1 = Series([1, 2, 3], index=[datetime(1995, 12, 31),
datetime(2000, 12, 31),
datetime(2005, 12, 31)])
s2 = Series([1, 2, 3], index=[datetime(1997, 12, 31),
datetime(2003, 12, 31),
datetime(2008, 12, 31)])

# plot first series, then add the second series to those axes,
# then try adding the first series again
ax = s1.plot()
s2.plot(ax=ax)
s1.plot(ax=ax)


def _check_plot_works(f, freq=None, series=None, *args, **kwargs):
import matplotlib.pyplot as plt
Expand Down

0 comments on commit b6ca76a

Please sign in to comment.