Skip to content

Commit

Permalink
Fixes test for tdi w/o autofmt_xdate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoppert committed Jan 14, 2017
1 parent b6e6a81 commit d588c2c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pandas/tests/plotting/test_datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,13 +1282,11 @@ def test_format_timedelta_ticks_narrow(self):
df = DataFrame(np.random.randn(len(rng), 3), rng)
ax = df.plot(fontsize=2)
fig = ax.get_figure()
#fig.autofmt_xdate()
fig.canvas.draw()
labels = ax.get_xticklabels()
self.assertEqual(len(labels), len(expected_labels))
for l, l_expected in zip(labels, expected_labels):
self.assertEqual(l.get_text(), l_expected)
self.assertEqual(l.get_rotation(), 30)

def test_format_timedelta_ticks_wide(self):

Expand All @@ -1308,13 +1306,11 @@ def test_format_timedelta_ticks_wide(self):
df = DataFrame(np.random.randn(len(rng), 3), rng)
ax = df.plot(fontsize=2)
fig = ax.get_figure()
#fig.autofmt_xdate()
fig.canvas.draw()
labels = ax.get_xticklabels()
self.assertEqual(len(labels), len(expected_labels))
for l, l_expected in zip(labels, expected_labels):
self.assertEqual(l.get_text(), l_expected)
self.assertEqual(l.get_rotation(), 30)

def test_timedelta_plot(self):
# test issue #8711
Expand Down

0 comments on commit d588c2c

Please sign in to comment.