Skip to content

Commit

Permalink
Update NCL_vector_3.py (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
kafitzgerald committed Nov 6, 2023
1 parent 0e53d1d commit d9ee8ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Gallery/Vectors/NCL_vector_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@

# Generate axes using Cartopy projection
ax = plt.axes(projection=ccrs.PlateCarree())
z = gv.set_vector_density(ds, 0.017)
z = gv.set_vector_density(ds, 10)

# Draw vector plot
# Notes

# 1. We are using `set_vector_density` on line 47 as a replacement for NCL's vcMinDistanceF
# 1. We are using the geocat-viz `set_vector_density` on line 47 as a replacement for NCL's vcMinDistanceF.
# Note that it uses a minimum distance threshold specified as a integer in degrees rather than the NCL normalized device coordinates.
#
# 2. There is no matplotlib equivalent to "CurlyVector"
Q = plt.quiver(z['lon'],
z['lat'],
Expand Down

0 comments on commit d9ee8ff

Please sign in to comment.