Matplotlib cung cấp nhiều colormap, người khác thêm bằng :func:'~matplotlib.cm.register_cmap'. Hàm này ghi chép colormap tích hợp, và trả về danh sách tất cả colormap đã đăng ký nếu gọi.
Ví dụ
from matplotlib import pyplot as plt
cmaps = plt.colormaps()
print("Possible color maps are: ")
for item in cmaps:
print(item)
Kết quả
Accent Accent_r Blues ... viridis_r winter winter_r