Skip to content

Commit

Permalink
Merge pull request #956 from ioam/colors_fix
Browse files Browse the repository at this point in the history
Fixed confusing aliasing
  • Loading branch information
philippjfr committed Oct 27, 2016
2 parents 7475366 + b2b5034 commit 8d6b2a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.colors as mpl_colors
from matplotlib import ticker
from matplotlib import colors
from matplotlib.dates import date2num

from ...core import util
Expand Down Expand Up @@ -640,10 +640,10 @@ def _norm_kwargs(self, element, ranges, opts, vdim):
clim = (0, len(np.unique(cs)))
if self.logz:
if self.symmetric:
norm = colors.SymLogNorm(vmin=clim[0], vmax=clim[1],
norm = mpl_colors.SymLogNorm(vmin=clim[0], vmax=clim[1],
linthresh=clim[1]/np.e)
else:
norm = colors.LogNorm(vmin=clim[0], vmax=clim[1])
norm = mpl_colors.LogNorm(vmin=clim[0], vmax=clim[1])
opts['norm'] = norm
opts['vmin'] = clim[0]
opts['vmax'] = clim[1]
Expand Down

0 comments on commit 8d6b2a1

Please sign in to comment.