---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-106-ff323e608faf> in <module>
8 m = ax.pcolormesh(x, y, data)
9
---> 10 f.bottompanel.colorbar(m)
~/miniconda3/envs/python3/lib/python3.6/site-packages/proplot/subplots.py in iterator(*args, **kwargs)
586 ret = []
587 for ax in self:
--> 588 res = getattr(ax, attr)(*args, **kwargs)
589 if res is not None:
590 ret += [res]
~/miniconda3/envs/python3/lib/python3.6/site-packages/proplot/axes.py in colorbar(self, i, n, length, space, hspace, wspace, *args, **kwargs)
2198 orientation = 'vertical'
2199 kwargs.update({'orientation':orientation, 'ticklocation':ticklocation})
-> 2200 return colorbar_factory(ax, *args, **kwargs)
2201
2202 class MapAxes(BaseAxes):
~/miniconda3/envs/python3/lib/python3.6/site-packages/proplot/axes.py in colorbar_factory(ax, mappable, values, orientation, extend, extendlength, clabel, label, ctickminor, tickminor, cgrid, grid, ticklocation, cticklocation, ctickdir, tickdir, clocator, locator, cminorlocator, minorlocator, clocator_kw, locator_kw, cminorlocator_kw, minorlocator_kw, cformatter, formatter, cticklabels, ticklabels, norm, norm_kw, **kwargs)
3241 ticks=locators[0],
3242 format=cformatter,
-> 3243 **csettings)
3244
3245 # Make edges/dividers consistent with axis edges
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/figure.py in colorbar(self, mappable, cax, ax, use_gridspec, **kw)
2127 'panchor']
2128 cb_kw = {k: v for k, v in kw.items() if k not in NON_COLORBAR_KEYS}
-> 2129 cb = cbar.colorbar_factory(cax, mappable, **cb_kw)
2130
2131 self.sca(current_ax)
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in colorbar_factory(cax, mappable, **kwargs)
1565 cb = ColorbarPatch(cax, mappable, **kwargs)
1566 else:
-> 1567 cb = Colorbar(cax, mappable, **kwargs)
1568
1569 cid = mappable.callbacksSM.connect('changed', cb.on_mappable_changed)
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in __init__(self, ax, mappable, **kw)
1096 kw['alpha'] = mappable.get_alpha()
1097
-> 1098 ColorbarBase.__init__(self, ax, **kw)
1099
1100 def on_mappable_changed(self, mappable):
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in __init__(self, ax, cmap, norm, alpha, values, boundaries, orientation, ticklocation, extend, spacing, ticks, format, drawedges, filled, extendfrac, extendrect, label)
412 self.formatter = format # Assume it is a Formatter
413 # The rest is in a method so we can recalculate when clim changes.
--> 414 self.draw_all()
415
416 def _extend_lower(self):
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in draw_all(self)
446 C = self._values[:, np.newaxis]
447 self.config_axis()
--> 448 self._config_axes(X, Y)
449 if self.filled:
450 self._add_solids(X, Y, C)
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in _config_axes(self, X, Y)
634 ax.add_artist(self.patch)
635
--> 636 self.update_ticks()
637
638 def _set_label(self):
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in update_ticks(self)
546 else:
547 _log.debug('Using fixed locator on colorbar')
--> 548 ticks, ticklabels, offset_string = self._ticker(locator, formatter)
549 long_axis.set_ticks(ticks)
550 long_axis.set_ticklabels(ticklabels)
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in _ticker(self, locator, formatter)
771 ticks = self._locate(b)
772 formatter.set_locs(b)
--> 773 ticklabels = [formatter(t, i) for i, t in enumerate(b)]
774 offset_string = formatter.get_offset()
775 return ticks, ticklabels, offset_string
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/colorbar.py in <listcomp>(.0)
771 ticks = self._locate(b)
772 formatter.set_locs(b)
--> 773 ticklabels = [formatter(t, i) for i, t in enumerate(b)]
774 offset_string = formatter.get_offset()
775 return ticks, ticklabels, offset_string
~/miniconda3/envs/python3/lib/python3.6/site-packages/proplot/axistools.py in __call__(self, x, pos)
888 prefix = ''
889 tickrange = self._tickrange
--> 890 if (x + eps) < tickrange[0] or (x - eps) > tickrange[1]:
891 return '' # avoid some ticks
892 string = super().__call__(x, pos)
TypeError: 'NoneType' object is not subscriptable