Skip to content

Commit d86ced4

Browse files
authored
Merge pull request matplotlib#31580 from story645/color-deregister
DOC: added unregister to colormap guide
2 parents 05b9179 + 2638e3e commit d86ced4

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)