Skip to content

Commit 682b39e

Browse files
author
y-p
committed
TST: Log scale on bar chart hides bars GH3247
1 parent f6e84c5 commit 682b39e

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
@@ -395,6 +395,11 @@ def test_bar_center(self):
395395
ax = df.plot(kind='bar', grid=True)
396396
self.assertEqual(ax.xaxis.get_ticklocs()[0],
397397
ax.patches[0].get_x() + ax.patches[0].get_width())
398+
@slow
399+
def test_bar_log(self):
400+
df = DataFrame({'A': [3] * 5, 'B': range(5)}, index=range(5))
401+
ax = df.plot(kind='bar', grid=True,log=True)
402+
self.assertEqual(ax.yaxis.get_ticklocs()[0],0.1)
398403

399404
@slow
400405
def test_boxplot(self):

0 commit comments

Comments
 (0)