Skip to content

Commit

Permalink
Fixed flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 28, 2018
1 parent 4582996 commit 7de20cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,14 +625,12 @@ def _norm_kwargs(self, element, ranges, opts, vdim, prefix=''):

# Check whether the colorbar should indicate clipping
if values.dtype.kind not in 'OSUM':
categorical = False
ncolors = self.color_levels
try:
el_min, el_max = np.nanmin(values), np.nanmax(values)
except ValueError:
el_min, el_max = -np.inf, np.inf
else:
categorical = True
ncolors = clim[-1]+1
el_min, el_max = -np.inf, np.inf
vmin = -np.inf if opts[prefix+'vmin'] is None else opts[prefix+'vmin']
Expand Down
4 changes: 2 additions & 2 deletions tests/plotting/testplotutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class TestMPLColormapUtils(ComparisonTestCase):

def setUp(self):
try:
from matplotlib.cm import get_cmap
import matplotlib.cm # noqa
except:
raise SkipTest("Matplotlib needed to test matplotlib colormap instances")

Expand Down Expand Up @@ -482,7 +482,7 @@ class TestBokehPaletteUtils(ComparisonTestCase):

def setUp(self):
try:
import bokeh.palettes
import bokeh.palettes # noqa
except:
raise SkipTest('Bokeh required to test bokeh palette utilities')

Expand Down

0 comments on commit 7de20cb

Please sign in to comment.