Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16be971

Browse files
committed
Merge pull request matplotlib#1889 from tacaswell/log_bar_regression
Fixed handling of `bar(.., bottom=None, log=True)`
2 parents a3c02a3 + edbeedf commit 16be971

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4799,8 +4799,8 @@ def make_iterable(x):
47994799
if _bottom is None:
48004800
if self.get_yscale() == 'log':
48014801
adjust_ylim = True
4802-
else:
4803-
bottom = [0]
4802+
bottom = [0]
4803+
48044804
nbars = len(left)
48054805
if len(width) == 1:
48064806
width *= nbars
@@ -4814,8 +4814,8 @@ def make_iterable(x):
48144814
if _left is None:
48154815
if self.get_xscale() == 'log':
48164816
adjust_xlim = True
4817-
else:
4818-
left = [0]
4817+
left = [0]
4818+
48194819
nbars = len(bottom)
48204820
if len(left) == 1:
48214821
left *= nbars

0 commit comments

Comments
 (0)