8000 Docstring changes made based on comments: · matplotlib/matplotlib@d2d9971 · GitHub
[go: up one dir, main page]

Skip to content

Commit d2d9971

Browse files
committed
Docstring changes made based on comments:
* NOTE: cnaged to .. note :: * Raises section removed Colormap.reversed docstring * methods mentioned in a new file under whats_new
1 parent 9f0aa6e commit d2d9971

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Colormap reversed method
2+
------------------------
3+
4+
The methods :meth:`~matplotlib.colors.LinearSegmentedColormap.reversed` and
5+
:meth:`~matplotlib.colors.ListedColormap.reversed` return a reversed
6+
instance of the Colormap. This implements a way for any Colormap to be
7+
reversed.

lib/matplotlib/colors.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -669,19 +669,14 @@ def reversed(self, name=None):
669669
"""
670670
Make a reversed instance of the Colormap.
671671
672-
NOTE: Function not implemented for base class.
672+
.. note :: Function not implemented for base class.
673673
674674
Parameters
675675
----------
676676
name : str, optional
677677
The name for the reversed colormap. If it's None the
678678
name will be the name of the parent colormap + "_r".
679679
680-
Raises
681-
------
682-
NotImplementedError
683-
Function not implemented for base class.
684-
685680
Notes
686681
-----
687682
See :meth:`LinearSegmentedColormap.reversed` and

0 commit comments

Comments
 (0)
0