We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e8d17 commit 1ed30d0Copy full SHA for 1ed30d0
galleries/users_explain/colors/colormaps.py
@@ -15,6 +15,11 @@
15
help on creating your own colormaps, see
16
:ref:`colormap-manipulation`.
17
18
+To get a list of all registered colormaps, you can do::
19
+
20
+ from matplotlib import colormaps
21
+ list(colormaps)
22
23
Overview
24
========
25
lib/matplotlib/cm.py
@@ -74,6 +74,11 @@ class ColormapRegistry(Mapping):
74
Additional colormaps can be added via `.ColormapRegistry.register`::
75
76
mpl.colormaps.register(my_colormap)
77
78
+ To get a list of all registered colormaps, you can do::
79
80
81
82
"""
83
def __init__(self, cmaps):
84
self._cmaps = cmaps
0 commit comments