Update colorbar range for animate
This commit is contained in:
parent
402ad87091
commit
be32887eee
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue