Skip to content

Commit 6e74f8a

Browse files
author
y-p
committed
Revert "Revert "TST: Log scale on bar chart hides bars GH3247" mpl 1.2.1 regression"
This reverts commit fc355b1.
1 parent 1569838 commit 6e74f8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/test_graphics.py

+5
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ def test_bar_center(self):
404404
ax = df.plot(kind='bar', grid=True)
405405
self.assertEqual(ax.xaxis.get_ticklocs()[0],
406406
ax.patches[0].get_x() + ax.patches[0].get_width())
407+
@slow
408+
def test_bar_log(self):
409+
df = DataFrame({'A': [3] * 5, 'B': range(5)}, index=range(5))
410+
ax = df.plot(kind='bar', grid=True,log=True)
411+
self.assertEqual(ax.yaxis.get_ticklocs()[0],0.1)
407412

408413
@slow
409414
def test_boxplot(self):

0 commit comments

Comments
 (0)