added a reversing section to colormap reference by story645 · Pull Request #23904 · matplotlib/matplotlib · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions examples/color/colormap_reference.py
14 changes: 7 additions & 7 deletions lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,13 +870,13 @@ def reversed(self, name=None):
"""
Return a reversed instance of the Colormap.

.. note:: This function is not implemented for base class.
.. note:: This function is not implemented for the base class.

Parameters
----------
name : str, optional
The name for the reversed colormap. If it's None the
name will be the name of the parent colormap + "_r".
The name for the reversed colormap. If None, the
name is set to ``self.name + "_r"``.

See Also
--------
Expand Down Expand Up @@ -1079,8 +1079,8 @@ def reversed(self, name=None):
Parameters
----------
name : str, optional
The name for the reversed colormap. If it's None the
name will be the name of the parent colormap + "_r".
The name for the reversed colormap. If None, the
name is set to ``self.name + "_r"``.

Returns
-------
Expand Down Expand Up @@ -1179,8 +1179,8 @@ def reversed(self, name=None):
Parameters
----------
name : str, optional
The name for the reversed colormap. If it's None the
name will be the name of the parent colormap + "_r".
The name for the reversed colormap. If None, the
name is set to ``self.name + "_r"``.

Returns
-------
Expand Down
42 changes: 42 additions & 0 deletions tutorials/colors/colormap-manipulation.py