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):
189189
190190 def get_cmap (self , cmap ):
191191 """
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*.
195193
196194 Parameters
197195 ----------
198- cmap : str, Colormap, None
196+ cmap : str or `~matplotlib.colors. Colormap` or None
199197
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`
203201
204202 Returns
205203 -------
You can’t perform that action at this time.
0 commit comments