From 569da9c75bf5ba89bd697cba1d97f5c252779076 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Mon, 24 Apr 2023 22:00:04 +0200 Subject: [PATCH] Polish --- Inst_eddies/Analysis/plot_velocity.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Inst_eddies/Analysis/plot_velocity.py b/Inst_eddies/Analysis/plot_velocity.py index c6a39e60..4334c012 100755 --- a/Inst_eddies/Analysis/plot_velocity.py +++ b/Inst_eddies/Analysis/plot_velocity.py @@ -70,12 +70,10 @@ with netCDF4.Dataset(args.input_file) as f: lat_2d[undef_velocity].reshape(-1), transform = src_crs, marker = "*", color = "violet", linestyle = "None") else: - quiver_return = ax.quiver(longitude[lon_mask], - latitude[lat_mask], + quiver_return = ax.quiver(longitude[lon_mask], latitude[lat_mask], ugos[lat_mask][:, lon_mask], vgos[lat_mask][:, lon_mask], - scale = args.scale, - scale_units = "width", + scale = args.scale, scale_units = "width", transform = src_crs) plt.quiverkey(quiver_return, 0.9, 0.9, 1, r"1 m s$^{-1}$", coordinates = "figure") -- GitLab