Skip to content

Commit 0dc69de

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR matplotlib#31580: DOC: added unregister to colormap guide
1 parent fcf0541 commit 0dc69de

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

galleries/users_explain/colors/colormap-manipulation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ def plot_linearmap(cdict):
299299

300300
plt.show()
301301

302+
# %%
303+
# Colormaps added to the registry can also be deregistered:
304+
305+
mpl.colormaps.unregister(my_cmap.name)
306+
302307
# %%
303308
#
304309
# .. admonition:: References

0 commit comments

Comments
 (0)