pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/commit/85008799417ff51d2623d734c982bab443f5c459

ss" /> Added documentation on getting full list of registered colormaps re: … · matplotlib/matplotlib@8500879 · GitHub
Skip to content

Commit 8500879

Browse files
authored
Added documentation on getting full list of registered colormaps re: issue #26244 (#26930)
* closes #26244, added documentation on getting full list of registered colormaps
1 parent c1482d5 commit 8500879

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

galleries/users_explain/colors/colormaps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
help on creating your own colormaps, see
1616
:ref:`colormap-manipulation`.
1717
18+
To get a list of all registered colormaps, you can do::
19+
20+
from matplotlib import colormaps
21+
list(colormaps)
22+
1823
Overview
1924
========
2025

lib/matplotlib/cm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ class ColormapRegistry(Mapping):
7474
Additional colormaps can be added via `.ColormapRegistry.register`::
7575
7676
mpl.colormaps.register(my_colormap)
77+
78+
To get a list of all registered colormaps, you can do::
79+
80+
from matplotlib import colormaps
81+
list(colormaps)
7782
"""
7883
def __init__(self, cmaps):
7984
self._cmaps = cmaps

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy