We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aff0598 commit c26feefCopy full SHA for c26feef
src/colormaps.jl
@@ -49,7 +49,7 @@ function init_colormaps()
49
PythonCall.pycopy!(LinearSegmentedColormap, colorsm.LinearSegmentedColormap)
50
51
PythonCall.pycopy!(cm_get_cmap, pyhasattr(pyplot, "get_cmap") ? pyplot.get_cmap : cm.get_cmap)
52
- PythonCall.pycopy!(cm_register_cmap, pyhasattr(matplotlib.colormaps, "register") ? matplotlib.colormaps.register : cm.register_cmap)
+ PythonCall.pycopy!(cm_register_cmap, pyhasattr(matplotlib, "colormaps") && pyhasattr(matplotlib.colormaps, "register") ? matplotlib.colormaps.register : cm.register_cmap)
53
54
PythonCall.pycopy!(ScalarMappable, cm.ScalarMappable)
55
PythonCall.pycopy!(Normalize01, pycall(colorsm.Normalize; vmin=0,vmax=1))
0 commit comments