Thanks to visit codestin.com Credit goes to github.com
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 3f99c20 commit b8bdcf8Copy full SHA for b8bdcf8
1 file changed
lib/matplotlib/cm.py
@@ -189,17 +189,15 @@ def unregister(self, name):
189
190
def get_cmap(self, cmap):
191
"""
192
- Ensure that at given object is a converted to a color map.
193
-
194
- If *cmap* in `None`, returns the Colormap named by :rc:`image.cmap`.
+ Return a color map specified through *cmap*.
195
196
Parameters
197
----------
198
- cmap : str, Colormap, None
+ cmap : str or `~matplotlib.colors.Colormap` or None
199
200
- - if a `~matplotlib.colors.Colormap`, return it
201
- - if a string, look it up in mpl.colormaps
202
- - if None, look up the default color map in mpl.colormaps
+ - if a `.Colormap`, return it
+ - if a string, look it up in ``mpl.colormaps``
+ - if None, return the Colormap defined in :rc:`image.cmap`
203
204
Returns
205
-------
0 commit comments