Skip to content

Commit

Permalink
Merge pull request #515 from kafitzgerald/update_cm_calls
Browse files Browse the repository at this point in the history
Update cm calls
  • Loading branch information
jukent committed Jun 10, 2023
2 parents 4077bce + 8d85bba commit a0a6a7d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Gallery/Vectors/NCL_vector_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@
ax = plt.axes(projection=ccrs.PlateCarree())

# Import an NCL colormap and truncate it for a range and color levels
plt.cm.register_cmap(
'BlAqGrYeOrReVi200',
gv.truncate_colormap(cmaps.BlAqGrYeOrReVi200,
minval=0.03,
maxval=0.95,
n=16))
cmap = plt.cm.get_cmap('BlAqGrYeOrReVi200', 16)
cmap = gv.truncate_colormap(cmaps.BlAqGrYeOrReVi200,
minval=0.03,
maxval=0.95,
n=16)

# Draw vector plot
# (there is no matplotlib equivalent to "CurlyVector" yet)
Expand Down

0 comments on commit a0a6a7d

Please sign in to comment.