Permalink
Browse files

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 #1882
  • Loading branch information...
1 parent 01a4bed commit d6e3734931504063553951b5be1ab6b3d8ebfb1f @tacaswell committed Apr 9, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/matplotlib/axes.py
View
@@ -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)
@@ -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)

0 comments on commit d6e3734

Please sign in to comment.