Skip to content

Commit d6e3734

Browse files
committed
re-added lines to make sure that bottom and left are not None in
the case of `log=True`. If this is not done, there will be type exceptions. Issue matplotlib#1882
1 parent 01a4bed commit d6e3734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4797,6 +4797,7 @@ def make_iterable(x):
47974797
if _bottom is None:
47984798
if self.get_yscale() == 'log':
47994799
adjust_ylim = True
4800+
bottom = [1e-100]
48004801
else:
48014802
bottom = [0]
48024803
nbars = len(left)
@@ -4812,6 +4813,7 @@ def make_iterable(x):
48124813
if _left is None:
48134814
if self.get_xscale() == 'log':
48144815
adjust_xlim = True
4816+
left = [1e-100]
48154817
else:
48164818
left = [0]
48174819
nbars = len(bottom)

0 commit comments

Comments
 (0)