Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2638e3e

Browse files
committed
added unregister to colormap guide
1 parent 05b9179 commit 2638e3e

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)