File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -189,17 +189,15 @@ def unregister(self, name):
189
189
190
190
def get_cmap (self , cmap ):
191
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`.
192
+ Return a color map specified through *cmap*.
195
193
196
194
Parameters
197
195
----------
198
- cmap : str, Colormap, None
196
+ cmap : str or `~matplotlib.colors. Colormap` or None
199
197
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
198
+ - if a `.Colormap`, return it
199
+ - if a string, look it up in `` mpl.colormaps``
200
+ - if None, return the Colormap defined in :rc:`image.cmap`
203
201
204
202
Returns
205
203
-------
You can’t perform that action at this time.
0 commit comments