We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28826e0 commit c229e30Copy full SHA for c229e30
src/colormaps.jl
@@ -55,7 +55,7 @@ function init_colormaps()
55
copy!(LinearSegmentedColormap, colorsm."LinearSegmentedColormap")
56
57
copy!(cm_get_cmap, haskey(plt, "get_cmap") ? plt."get_cmap" : cm."get_cmap")
58
- copy!(cm_register_cmap, haskey(matplotlib.colormaps, "register") ? matplotlib.colormaps."register" : cm."register_cmap")
+ copy!(cm_register_cmap, haskey(matplotlib, "colormaps") && haskey(matplotlib."colormaps", "register") ? matplotlib."colormaps"."register" : cm."register_cmap")
59
60
copy!(ScalarMappable, cm."ScalarMappable")
61
copy!(Normalize01, pycall(colorsm."Normalize",PyAny,vmin=0,vmax=1))
0 commit comments