Bug fix
This commit is contained in:
parent
ca51ed0559
commit
726b68539b
|
@ -118,6 +118,8 @@ def get_color(x,colormap,Min,Max):
|
|||
#print(x)
|
||||
if x < 0:
|
||||
x=0.0
|
||||
if x > 1.0:
|
||||
x=1.0
|
||||
x = np.around(x, decimals=decimals)
|
||||
if colormap=="Spectral" or colormap=='ocean' or colormap=="RdYlBu":
|
||||
Tempcm=cm.get_cmap(colormap).reversed()
|
||||
|
|
Loading…
Reference in New Issue