diff --git a/galleries/users_explain/colors/colormap-manipulation.py b/galleries/users_explain/colors/colormap-manipulation.py index 0cd488857257..8b773b4fac42 100644 --- a/galleries/users_explain/colors/colormap-manipulation.py +++ b/galleries/users_explain/colors/colormap-manipulation.py @@ -299,6 +299,11 @@ def plot_linearmap(cdict): plt.show() +# %% +# Colormaps added to the registry can also be deregistered: + +mpl.colormaps.unregister(my_cmap.name) + # %% # # .. admonition:: References