@@ -1325,6 +1325,7 @@ def __init__(self, data, **kwargs):
1325
1325
else :
1326
1326
self .tickoffset = 0.375
1327
1327
self .bar_width = 0.5
1328
+ self .log = kwargs .pop ('log' ,False )
1328
1329
MPLPlot .__init__ (self , data , ** kwargs )
1329
1330
1330
1331
def _args_adjust (self ):
@@ -1335,9 +1336,9 @@ def _args_adjust(self):
1335
1336
def bar_f (self ):
1336
1337
if self .kind == 'bar' :
1337
1338
def f (ax , x , y , w , start = None , ** kwds ):
1338
- return ax .bar (x , y , w , bottom = start , ** kwds )
1339
+ return ax .bar (x , y , w , bottom = start ,log = self . log , ** kwds )
1339
1340
elif self .kind == 'barh' :
1340
- def f (ax , x , y , w , start = None , ** kwds ):
1341
+ def f (ax , x , y , w , start = None , log = self . log , ** kwds ):
1341
1342
return ax .barh (x , y , w , left = start , ** kwds )
1342
1343
else :
1343
1344
raise NotImplementedError
@@ -1411,7 +1412,8 @@ def _post_plot_logic(self):
1411
1412
ax .set_xticks (self .ax_pos + self .tickoffset )
1412
1413
ax .set_xticklabels (str_index , rotation = self .rot ,
1413
1414
fontsize = self .fontsize )
1414
- ax .axhline (0 , color = 'k' , linestyle = '--' )
1415
+ if not self .log : # GH3254+
1416
+ ax .axhline (0 , color = 'k' , linestyle = '--' )
1415
1417
if name is not None :
1416
1418
ax .set_xlabel (name )
1417
1419
else :
0 commit comments