Update colormap and limits for animate & diff

This commit is contained in:
Edgar P. Burkhart 2022-05-18 10:05:49 +02:00
parent 358338af2e
commit 97c856a73c
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 7 additions and 5 deletions

View file

@ -107,7 +107,7 @@ u_m = axU.imshow(
U[0],
cmap="BuPu",
vmin=0,
vmax=np.nanmax(np.where(AW > 0.5, U, np.nan), initial=0),
vmax=20,
extent=(x0.min(), x0.max(), z0.min(), z0.max()),
zorder=1,
alpha=np.nan_to_num(AW[0]).clip(0, 1),
@ -116,7 +116,7 @@ ur_m = axU.imshow(
U[0],
cmap="YlOrBr",
vmin=0,
vmax=np.nanmax(np.where(AW > 0.5, U, np.nan), initial=0),
vmax=20,
extent=(x0.min(), x0.max(), z0.min(), z0.max()),
zorder=1,
alpha=1 - np.nan_to_num(AW[0]).clip(0, 1),