Skip to content

Commit 30e22d8

Browse files
authored
Merge pull request matplotlib#31582 from meeseeksmachine/auto-backport-of-pr-31580-on-v3.11.x
Backport PR matplotlib#31580 on branch v3.11.x (DOC: added unregister to colormap guide)
2 parents fcf0541 + 0dc69de commit 30e22d8

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)