Last active
December 8, 2020 01:18
-
-
Save raphaeldussin/e903d94c603792c65424f9a23e3d2184 to your computer and use it in GitHub Desktop.
plotting a ROMS velocity section with xarray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import cmocean | |
plt.figure(figsize=[10,8]) | |
CCS2['v'].isel(time=12, yq=500).plot(x='lon_v', y='z_v', | |
vmin=-0.25, vmax=0.25, | |
cmap=cmocean.cm.balance, | |
subplot_kws={'facecolor': 'grey'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment