update getcolors function

This commit is contained in:
wyq 2019-04-08 18:39:58 +08:00
parent 3cf3d6032f
commit 9f2b77732b

View File

@ -220,7 +220,8 @@ def makecolors(n, cmap='matlab_jet', reverse=False, alpha=None):
if isinstance(n, list):
cols = getcolors(n, alpha)
else:
ocmap = ColorUtil.getColorMap(cmap)
#ocmap = ColorUtil.getColorMap(cmap)
ocmap = getcolormap(cmap=cmap)
if reverse:
ocmap.reverse()
if alpha is None: