Matplotlib कई कलरमैप प्रदान करता है, और :func:'~matplotlib.cm.register_cmap' का उपयोग करके अन्य जोड़े जा सकते हैं। यह फंक्शन बिल्ट-इन कलरमैप का दस्तावेजीकरण करता है, और यदि बुलाया जाता है तो सभी रजिस्टर्ड कलरमैप की सूची भी लौटाएगा।
उदाहरण
from matplotlib import pyplot as plt
cmaps = plt.colormaps()
print("Possible color maps are: ")
for item in cmaps:
print(item)आउटपुट
Accent Accent_r Blues ... ... ... viridis_r winter winter_r