mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
update getcolors function
This commit is contained in:
parent
3cf3d6032f
commit
9f2b77732b
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user