1
Fork 0

Update colorbar range for animate

This commit is contained in:
Edgar P. Burkhart 2022-05-09 11:23:38 +02:00
parent 402ad87091
commit be32887eee
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ u_m = axU.pcolormesh(
U[0],
cmap="BuPu",
vmin=0,
vmax=np.nanquantile(U, 0.99),
vmax=np.nanmax(U),
zorder=1,
alpha=np.nan_to_num(AW[0]).clip(0, 1),
)
@ -111,7 +111,7 @@ ur_m = axU.pcolormesh(
U[0],
cmap="YlOrBr",
vmin=0,
vmax=np.nanquantile(U, 0.99),
vmax=np.nanmax(U),
zorder=1,
alpha=1 - np.nan_to_num(AW[0]).clip(0, 1),
)