Open xgarrido opened 1 month ago
matplotlib.cm.register_cmap has been removed and matplotlib.colormaps.register has been around since almost 3 years (since version 3.5.0 of matplotlib). Not sure it is worth adding a backward compatible flag such as
matplotlib.cm.register_cmap
matplotlib.colormaps.register
matplotlib
import matplotlib if matplotlib.__version__ >= "3.5.0": matplotlib.colormaps.register(cmap, name=name) else: matplotlib.cm.register_cmap(name, cmap)
matplotlib.cm.register_cmap
has been removed andmatplotlib.colormaps.register
has been around since almost 3 years (since version 3.5.0 ofmatplotlib
). Not sure it is worth adding a backward compatible flag such as