Skip to content

Commit

Permalink
Update deprecated methods (#590)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven G. Johnson <[email protected]>
  • Loading branch information
henry2004y and stevengj authored Jul 6, 2024
1 parent cb34a10 commit efbead9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/colormaps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function init_colormaps()

copy!(LinearSegmentedColormap, colorsm."LinearSegmentedColormap")

copy!(cm_get_cmap, haskey(plt, "get_cmap") ? plt."get_cmap" : cm."get_cmap")
copy!(cm_register_cmap, haskey(matplotlib, "colormaps") && haskey(matplotlib."colormaps", "register") ? matplotlib."colormaps"."register" : cm."register_cmap")
copy!(cm_get_cmap, hasproperty(plt, "get_cmap") ? plt."get_cmap" : cm."get_cmap")
copy!(cm_register_cmap, hasproperty(matplotlib, "colormaps") && hasproperty(matplotlib."colormaps", "register") ? matplotlib."colormaps"."register" : cm."register_cmap")

copy!(ScalarMappable, cm."ScalarMappable")
copy!(Normalize01, pycall(colorsm."Normalize",PyAny,vmin=0,vmax=1))
Expand Down

0 comments on commit efbead9

Please sign in to comment.