Skip to content

Commit

Permalink
re-added lines to make sure that bottom and left are not None in
Browse files Browse the repository at this point in the history
the case of `log=True`.  If this is not done, there will be type
exceptions.

Issue matplotlib#1882
  • Loading branch information
tacaswell committed Apr 9, 2013
1 parent 8a17df0 commit 2eb17ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/matplotlib/axes.py
Expand Up @@ -4797,6 +4797,7 @@ def make_iterable(x):
if _bottom is None:
if self.get_yscale() == 'log':
adjust_ylim = True
bottom = [1e-100]
else:
bottom = [0]
nbars = len(left)
Expand All @@ -4812,6 +4813,7 @@ def make_iterable(x):
if _left is None:
if self.get_xscale() == 'log':
adjust_xlim = True
left = [1e-100]
else:
left = [0]
nbars = len(bottom)
Expand Down

0 comments on commit 2eb17ab

Please sign in to comment.