bugfix: wrong variables used
This commit is contained in:
parent
8dc87023d1
commit
c8adfae0fa
|
@ -84,12 +84,12 @@ class Colormap(mpl.colors.ListedColormap):
|
|||
low_,high_ = map(Colormap._lab2msh,low_high)
|
||||
|
||||
elif model.lower() == 'msh':
|
||||
pass
|
||||
low_,high_ = low_high[0],low_high[1]
|
||||
|
||||
else:
|
||||
raise ValueError(f'Invalid color model: {model}.')
|
||||
|
||||
msh = map(functools.partial(Colormap._interpolate_msh,low=low_high[0],high=low_high[1]),np.linspace(0,1,N))
|
||||
msh = map(functools.partial(Colormap._interpolate_msh,low=low_,high=high_),np.linspace(0,1,N))
|
||||
rgb = np.array(list(map(Colormap._msh2rgb,msh)))
|
||||
|
||||
return Colormap(rgb,name=name)
|
||||
|
|
Loading…
Reference in New Issue