This commit is contained in:
Mario Gil 2022-06-03 16:54:06 -05:00
parent ca51ed0559
commit 726b68539b
1 changed files with 2 additions and 0 deletions

View File

@ -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()