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

Skip to content

Commit edbeedf

Browse files
committed
simplified logic related to bottom=None and log in bar
1 parent d6e3734 commit edbeedf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/matplotlib/axes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4797,9 +4797,8 @@ def make_iterable(x):
47974797
if _bottom is None:
47984798
if self.get_yscale() == 'log':
47994799
adjust_ylim = True
4800-
bottom = [1e-100]
4801-
else:
4802-
bottom = [0]
4800+
bottom = [0]
4801+
48034802
nbars = len(left)
48044803
if len(width) == 1:
48054804
width *= nbars
@@ -4813,9 +4812,8 @@ def make_iterable(x):
48134812
if _left is None:
48144813
if self.get_xscale() == 'log':
48154814
adjust_xlim = True
4816-
left = [1e-100]
4817-
else:
4818-
left = [0]
4815+
left = [0]
4816+
48194817
nbars = len(bottom)
48204818
if len(left) == 1:
48214819
left *= nbars

0 commit comments

Comments
 (0)