palettable color map list

Introduction

A list of color maps for the color map extension library palettable. ** * It takes time to load because there are quite a lot. ** **

Taking palettable.scientific.sequential.Tokyo_10 as an example, the simple usage is as follows. Used as a color cycle:

ax.set_prop_cycle('color', palettable.scientific.sequential.Tokyo_10.mpl_colors)

Use as a color map:

ax.imshow(zz, cmap=palettable.scientific.sequential.Tokyo_10.mpl_colormap)

Detailed usage is summarized in ** here **, so please have a look if you are interested. The following color map list is also posted on the Official HP.

palettable.cartocolors.diverging palettable_palettable.cartocolors.diverging_cmap.png palettable_palettable.cartocolors.diverging_colors.png

palettable.cartocolors.qualitative palettable_palettable.cartocolors.qualitative_colors.png

palettable.cartocolors.sequential palettable_palettable.cartocolors.sequential_cmap.png palettable_palettable.cartocolors.sequential_colors.png

palettable.cmocean.diverging palettable_palettable.cmocean.diverging_cmap.png palettable_palettable.cmocean.diverging_colors.png

palettable.cmocean.sequential palettable_palettable.cmocean.sequential_cmap.png palettable_palettable.cmocean.sequential_colors.png

palettable.colorbrewer.diverging palettable_palettable.colorbrewer.diverging_cmap.png palettable_palettable.colorbrewer.diverging_colors.png

palettable.colorbrewer.qualitative palettable_palettable.colorbrewer.qualitative_colors.png

palettable.colorbrewer.sequential palettable_palettable.colorbrewer.sequential_cmap.png palettable_palettable.colorbrewer.sequential_colors.png

palettable.lightbartlein.diverging palettable_palettable.lightbartlein.diverging_cmap.png palettable_palettable.lightbartlein.diverging_colors.png

palettable.lightbartlein.sequential palettable_palettable.lightbartlein.sequential_cmap.png palettable_palettable.lightbartlein.sequential_colors.png

palettable.matplotlib palettable_palettable.matplotlib_cmap.png palettable_palettable.matplotlib_colors.png

palettable.mycarta palettable_palettable.mycarta_cmap.png palettable_palettable.mycarta_colors.png

palettable.scientific.diverging palettable_palettable.scientific.diverging_cmap.png palettable_palettable.scientific.diverging_colors.png

palettable.scientific.sequential palettable_palettable.scientific.sequential_cmap.png palettable_palettable.scientific.sequential_colors.png

palettable.tableau palettable_palettable.tableau_colors.png

palettable.wesanderson palettable_palettable.wesanderson_colors.png

Code that generated the colormap list

from collections import OrderedDict

import numpy as np
import matplotlib.pyplot as plt
import palettable

cmaps = OrderedDict()

cmaps = {
    "palettable.cartocolors.diverging": ["ArmyRose_2", "ArmyRose_3", "ArmyRose_4", "ArmyRose_5", "ArmyRose_6", "ArmyRose_7", "Earth_2", "Earth_3", "Earth_4", "Earth_5", "Earth_6", "Earth_7", "Fall_2", "Fall_3", "Fall_4", "Fall_5", "Fall_6", "Fall_7", "Geyser_2", "Geyser_3", "Geyser_4", "Geyser_5", "Geyser_6", "Geyser_7", "TealRose_2", "TealRose_3", "TealRose_4", "TealRose_5", "TealRose_6", "TealRose_7", "Temps_2", "Temps_3", "Temps_4", "Temps_5", "Temps_6", "Temps_7", "Tropic_2", "Tropic_3", "Tropic_4", "Tropic_5", "Tropic_6", "Tropic_7"],
    "palettable.cartocolors.qualitative" : ["Antique_2", "Antique_3", "Antique_4", "Antique_5", "Antique_6", "Antique_7", "Antique_8", "Antique_9", "Antique_10", "Bold_2", "Bold_3", "Bold_4", "Bold_5", "Bold_6", "Bold_7", "Bold_8", "Bold_9", "Bold_10", "Pastel_2", "Pastel_3", "Pastel_4", "Pastel_5", "Pastel_6", "Pastel_7", "Pastel_8", "Pastel_9", "Pastel_10", "Prism_2", "Prism_3", "Prism_4", "Prism_5", "Prism_6", "Prism_7", "Prism_8", "Prism_9", "Prism_10", "Safe_2", "Safe_3", "Safe_4", "Safe_5", "Safe_6", "Safe_7", "Safe_8", "Safe_9", "Safe_10", "Vivid_2", "Vivid_3", "Vivid_4", "Vivid_5", "Vivid_6", "Vivid_7", "Vivid_8", "Vivid_9", "Vivid_10"],
    "palettable.cartocolors.sequential" : ["BluGrn_2", "BluGrn_3", "BluGrn_4", "BluGrn_5", "BluGrn_6", "BluGrn_7", "BluYl_2", "BluYl_3", "BluYl_4", "BluYl_5", "BluYl_6", "BluYl_7", "BrwnYl_2", "BrwnYl_3", "BrwnYl_4", "BrwnYl_5", "BrwnYl_6", "BrwnYl_7", "Burg_2", "Burg_3", "Burg_4", "Burg_5", "Burg_6", "Burg_7", "BurgYl_2", "BurgYl_3", "BurgYl_4", "BurgYl_5", "BurgYl_6", "BurgYl_7", "DarkMint_2", "DarkMint_3", "DarkMint_4", "DarkMint_5", "DarkMint_6", "DarkMint_7", "Emrld_2", "Emrld_3", "Emrld_4", "Emrld_5", "Emrld_6", "Emrld_7", "Magenta_2", "Magenta_3", "Magenta_4", "Magenta_5", "Magenta_6", "Magenta_7", "Mint_2", "Mint_3", "Mint_4", "Mint_5", "Mint_6", "Mint_7", "OrYel_2", "OrYel_3", "OrYel_4", "OrYel_5", "OrYel_6", "OrYel_7", "Peach_2", "Peach_3", "Peach_4", "Peach_5", "Peach_6", "Peach_7", "PinkYl_2", "PinkYl_3", "PinkYl_4", "PinkYl_5", "PinkYl_6", "PinkYl_7", "Purp_2", "Purp_3", "Purp_4", "Purp_5", "Purp_6", "Purp_7", "PurpOr_2", "PurpOr_3", "PurpOr_4", "PurpOr_5", "PurpOr_6", "PurpOr_7", "RedOr_2", "RedOr_3", "RedOr_4", "RedOr_5", "RedOr_6", "RedOr_7", "Sunset_2", "Sunset_3", "Sunset_4", "Sunset_5", "Sunset_6", "Sunset_7", "SunsetDark_2", "SunsetDark_3", "SunsetDark_4", "SunsetDark_5", "SunsetDark_6", "SunsetDark_7", "Teal_2", "Teal_3", "Teal_4", "Teal_5", "Teal_6", "Teal_7", "TealGrn_2", "TealGrn_3", "TealGrn_4", "TealGrn_5", "TealGrn_6", "TealGrn_7", "agGrnYl_2", "agGrnYl_3", "agGrnYl_4", "agGrnYl_5", "agGrnYl_6", "agGrnYl_7", "agSunset_2", "agSunset_3", "agSunset_4", "agSunset_5", "agSunset_6", "agSunset_7"],
    "palettable.cmocean.diverging" : ["Balance_3", "Balance_4", "Balance_5", "Balance_6", "Balance_7", "Balance_8", "Balance_9", "Balance_10", "Balance_11", "Balance_12", "Balance_13", "Balance_14", "Balance_15", "Balance_16", "Balance_17", "Balance_18", "Balance_19", "Balance_20", "Curl_3", "Curl_4", "Curl_5", "Curl_6", "Curl_7", "Curl_8", "Curl_9", "Curl_10", "Curl_11", "Curl_12", "Curl_13", "Curl_14", "Curl_15", "Curl_16", "Curl_17", "Curl_18", "Curl_19", "Curl_20", "Delta_3", "Delta_4", "Delta_5", "Delta_6", "Delta_7", "Delta_8", "Delta_9", "Delta_10", "Delta_11", "Delta_12", "Delta_13", "Delta_14", "Delta_15", "Delta_16", "Delta_17", "Delta_18", "Delta_19", "Delta_20"],
    "palettable.cmocean.sequential" : ["Algae_3", "Algae_4", "Algae_5", "Algae_6", "Algae_7", "Algae_8", "Algae_9", "Algae_10", "Algae_11", "Algae_12", "Algae_13", "Algae_14", "Algae_15", "Algae_16", "Algae_17", "Algae_18", "Algae_19", "Algae_20", "Amp_3", "Amp_4", "Amp_5", "Amp_6", "Amp_7", "Amp_8", "Amp_9", "Amp_10", "Amp_11", "Amp_12", "Amp_13", "Amp_14", "Amp_15", "Amp_16", "Amp_17", "Amp_18", "Amp_19", "Amp_20", "Deep_3", "Deep_4", "Deep_5", "Deep_6", "Deep_7", "Deep_8", "Deep_9", "Deep_10", "Deep_11", "Deep_12", "Deep_13", "Deep_14", "Deep_15", "Deep_16", "Deep_17", "Deep_18", "Deep_19", "Deep_20", "Dense_3", "Dense_4", "Dense_5", "Dense_6", "Dense_7", "Dense_8", "Dense_9", "Dense_10", "Dense_11", "Dense_12", "Dense_13", "Dense_14", "Dense_15", "Dense_16", "Dense_17", "Dense_18", "Dense_19", "Dense_20", "Gray_3", "Gray_4", "Gray_5", "Gray_6", "Gray_7", "Gray_8", "Gray_9", "Gray_10", "Gray_11", "Gray_12", "Gray_13", "Gray_14", "Gray_15", "Gray_16", "Gray_17", "Gray_18", "Gray_19", "Gray_20", "Haline_3", "Haline_4", "Haline_5", "Haline_6", "Haline_7", "Haline_8", "Haline_9", "Haline_10", "Haline_11", "Haline_12", "Haline_13", "Haline_14", "Haline_15", "Haline_16", "Haline_17", "Haline_18", "Haline_19", "Haline_20", "Ice_3", "Ice_4", "Ice_5", "Ice_6", "Ice_7", "Ice_8", "Ice_9", "Ice_10", "Ice_11", "Ice_12", "Ice_13", "Ice_14", "Ice_15", "Ice_16", "Ice_17", "Ice_18", "Ice_19", "Ice_20", "Matter_3", "Matter_4", "Matter_5", "Matter_6", "Matter_7", "Matter_8", "Matter_9", "Matter_10", "Matter_11", "Matter_12", "Matter_13", "Matter_14", "Matter_15", "Matter_16", "Matter_17", "Matter_18", "Matter_19", "Matter_20", "Oxy_3", "Oxy_4", "Oxy_5", "Oxy_6", "Oxy_7", "Oxy_8", "Oxy_9", "Oxy_10", "Oxy_11", "Oxy_12", "Oxy_13", "Oxy_14", "Oxy_15", "Oxy_16", "Oxy_17", "Oxy_18", "Oxy_19", "Oxy_20", "Phase_3", "Phase_4", "Phase_5", "Phase_6", "Phase_7", "Phase_8", "Phase_9", "Phase_10", "Phase_11", "Phase_12", "Phase_13", "Phase_14", "Phase_15", "Phase_16", "Phase_17", "Phase_18", "Phase_19", "Phase_20", "Solar_3", "Solar_4", "Solar_5", "Solar_6", "Solar_7", "Solar_8", "Solar_9", "Solar_10", "Solar_11", "Solar_12", "Solar_13", "Solar_14", "Solar_15", "Solar_16", "Solar_17", "Solar_18", "Solar_19", "Solar_20", "Speed_3", "Speed_4", "Speed_5", "Speed_6", "Speed_7", "Speed_8", "Speed_9", "Speed_10", "Speed_11", "Speed_12", "Speed_13", "Speed_14", "Speed_15", "Speed_16", "Speed_17", "Speed_18", "Speed_19", "Speed_20", "Tempo_3", "Tempo_4", "Tempo_5", "Tempo_6", "Tempo_7", "Tempo_8", "Tempo_9", "Tempo_10", "Tempo_11", "Tempo_12", "Tempo_13", "Tempo_14", "Tempo_15", "Tempo_16", "Tempo_17", "Tempo_18", "Tempo_19", "Tempo_20", "Thermal_3", "Thermal_4", "Thermal_5", "Thermal_6", "Thermal_7", "Thermal_8", "Thermal_9", "Thermal_10", "Thermal_11", "Thermal_12", "Thermal_13", "Thermal_14", "Thermal_15", "Thermal_16", "Thermal_17", "Thermal_18", "Thermal_19", "Thermal_20", "Turbid_3", "Turbid_4", "Turbid_5", "Turbid_6", "Turbid_7", "Turbid_8", "Turbid_9", "Turbid_10", "Turbid_11", "Turbid_12", "Turbid_13", "Turbid_14", "Turbid_15", "Turbid_16", "Turbid_17", "Turbid_18", "Turbid_19", "Turbid_20"],
    "palettable.colorbrewer.diverging" : ["BrBG_3", "BrBG_4", "BrBG_5", "BrBG_6", "BrBG_7", "BrBG_8", "BrBG_9", "BrBG_10", "BrBG_11", "PRGn_3", "PRGn_4", "PRGn_5", "PRGn_6", "PRGn_7", "PRGn_8", "PRGn_9", "PRGn_10", "PRGn_11", "PiYG_3", "PiYG_4", "PiYG_5", "PiYG_6", "PiYG_7", "PiYG_8", "PiYG_9", "PiYG_10", "PiYG_11", "PuOr_3", "PuOr_4", "PuOr_5", "PuOr_6", "PuOr_7", "PuOr_8", "PuOr_9", "PuOr_10", "PuOr_11", "RdBu_3", "RdBu_4", "RdBu_5", "RdBu_6", "RdBu_7", "RdBu_8", "RdBu_9", "RdBu_10", "RdBu_11", "RdGy_3", "RdGy_4", "RdGy_5", "RdGy_6", "RdGy_7", "RdGy_8", "RdGy_9", "RdGy_10", "RdGy_11", "RdYlBu_3", "RdYlBu_4", "RdYlBu_5", "RdYlBu_6", "RdYlBu_7", "RdYlBu_8", "RdYlBu_9", "RdYlBu_10", "RdYlBu_11", "RdYlGn_3", "RdYlGn_4", "RdYlGn_5", "RdYlGn_6", "RdYlGn_7", "RdYlGn_8", "RdYlGn_9", "RdYlGn_10", "RdYlGn_11", "Spectral_3", "Spectral_4", "Spectral_5", "Spectral_6", "Spectral_7", "Spectral_8", "Spectral_9", "Spectral_10", "Spectral_11"],
    "palettable.colorbrewer.qualitative" : ["Accent_3", "Accent_4", "Accent_5", "Accent_6", "Accent_7", "Accent_8", "Dark2_3", "Dark2_4", "Dark2_5", "Dark2_6", "Dark2_7", "Dark2_8", "Paired_3", "Paired_4", "Paired_5", "Paired_6", "Paired_7", "Paired_8", "Paired_9", "Paired_10", "Paired_11", "Paired_12", "Pastel1_3", "Pastel1_4", "Pastel1_5", "Pastel1_6", "Pastel1_7", "Pastel1_8", "Pastel1_9", "Pastel2_3", "Pastel2_4", "Pastel2_5", "Pastel2_6", "Pastel2_7", "Pastel2_8", "Set1_3", "Set1_4", "Set1_5", "Set1_6", "Set1_7", "Set1_8", "Set1_9", "Set2_3", "Set2_4", "Set2_5", "Set2_6", "Set2_7", "Set2_8", "Set3_3", "Set3_4", "Set3_5", "Set3_6", "Set3_7", "Set3_8", "Set3_9", "Set3_10", "Set3_11", "Set3_12"],
    "palettable.colorbrewer.sequential" : ["Blues_3", "Blues_4", "Blues_5", "Blues_6", "Blues_7", "Blues_8", "Blues_9", "BuGn_3", "BuGn_4", "BuGn_5", "BuGn_6", "BuGn_7", "BuGn_8", "BuGn_9", "BuPu_3", "BuPu_4", "BuPu_5", "BuPu_6", "BuPu_7", "BuPu_8", "BuPu_9", "GnBu_3", "GnBu_4", "GnBu_5", "GnBu_6", "GnBu_7", "GnBu_8", "GnBu_9", "Greens_3", "Greens_4", "Greens_5", "Greens_6", "Greens_7", "Greens_8", "Greens_9", "Greys_3", "Greys_4", "Greys_5", "Greys_6", "Greys_7", "Greys_8", "Greys_9", "OrRd_3", "OrRd_4", "OrRd_5", "OrRd_6", "OrRd_7", "OrRd_8", "OrRd_9", "Oranges_3", "Oranges_4", "Oranges_5", "Oranges_6", "Oranges_7", "Oranges_8", "Oranges_9", "PuBu_3", "PuBu_4", "PuBu_5", "PuBu_6", "PuBu_7", "PuBu_8", "PuBu_9", "PuBuGn_3", "PuBuGn_4", "PuBuGn_5", "PuBuGn_6", "PuBuGn_7", "PuBuGn_8", "PuBuGn_9", "PuRd_3", "PuRd_4", "PuRd_5", "PuRd_6", "PuRd_7", "PuRd_8", "PuRd_9", "Purples_3", "Purples_4", "Purples_5", "Purples_6", "Purples_7", "Purples_8", "Purples_9", "RdPu_3", "RdPu_4", "RdPu_5", "RdPu_6", "RdPu_7", "RdPu_8", "RdPu_9", "Reds_3", "Reds_4", "Reds_5", "Reds_6", "Reds_7", "Reds_8", "Reds_9", "YlGn_3", "YlGn_4", "YlGn_5", "YlGn_6", "YlGn_7", "YlGn_8", "YlGn_9", "YlGnBu_3", "YlGnBu_4", "YlGnBu_5", "YlGnBu_6", "YlGnBu_7", "YlGnBu_8", "YlGnBu_9", "YlOrBr_3", "YlOrBr_4", "YlOrBr_5", "YlOrBr_6", "YlOrBr_7", "YlOrBr_8", "YlOrBr_9", "YlOrRd_3", "YlOrRd_4", "YlOrRd_5", "YlOrRd_6", "YlOrRd_7", "YlOrRd_8", "YlOrRd_9"],
    "palettable.lightbartlein.diverging": ["BlueDarkOrange12_2", "BlueDarkOrange12_3", "BlueDarkOrange12_4", "BlueDarkOrange12_5", "BlueDarkOrange12_6", "BlueDarkOrange12_7", "BlueDarkOrange12_8", "BlueDarkOrange12_9", "BlueDarkOrange12_10", "BlueDarkOrange12_11", "BlueDarkOrange12_12", "BlueDarkOrange18_2", "BlueDarkOrange18_3", "BlueDarkOrange18_4", "BlueDarkOrange18_5", "BlueDarkOrange18_6", "BlueDarkOrange18_7", "BlueDarkOrange18_8", "BlueDarkOrange18_9", "BlueDarkOrange18_10", "BlueDarkOrange18_11", "BlueDarkOrange18_12", "BlueDarkOrange18_13", "BlueDarkOrange18_14", "BlueDarkOrange18_15", "BlueDarkOrange18_16", "BlueDarkOrange18_17", "BlueDarkOrange18_18", "BlueDarkRed12_2", "BlueDarkRed12_3", "BlueDarkRed12_4", "BlueDarkRed12_5", "BlueDarkRed12_6", "BlueDarkRed12_7", "BlueDarkRed12_8", "BlueDarkRed12_9", "BlueDarkRed12_10", "BlueDarkRed12_11", "BlueDarkRed12_12", "BlueDarkRed18_2", "BlueDarkRed18_3", "BlueDarkRed18_4", "BlueDarkRed18_5", "BlueDarkRed18_6", "BlueDarkRed18_7", "BlueDarkRed18_8", "BlueDarkRed18_9", "BlueDarkRed18_10", "BlueDarkRed18_11", "BlueDarkRed18_12", "BlueDarkRed18_13", "BlueDarkRed18_14", "BlueDarkRed18_15", "BlueDarkRed18_16", "BlueDarkRed18_17", "BlueDarkRed18_18", "BlueGray_2", "BlueGray_3", "BlueGray_4", "BlueGray_5", "BlueGray_6", "BlueGray_7", "BlueGray_8", "BlueGreen_2", "BlueGreen_3", "BlueGreen_4", "BlueGreen_5", "BlueGreen_6", "BlueGreen_7", "BlueGreen_8", "BlueGreen_9", "BlueGreen_10", "BlueGreen_11", "BlueGreen_12", "BlueGreen_13", "BlueGreen_14", "BlueGrey_2", "BlueGrey_3", "BlueGrey_4", "BlueGrey_5", "BlueGrey_6", "BlueGrey_7", "BlueGrey_8", "BlueOrange10_2", "BlueOrange10_3", "BlueOrange10_4", "BlueOrange10_5", "BlueOrange10_6", "BlueOrange10_7", "BlueOrange10_8", "BlueOrange10_9", "BlueOrange10_10", "BlueOrange12_2", "BlueOrange12_3", "BlueOrange12_4", "BlueOrange12_5", "BlueOrange12_6", "BlueOrange12_7", "BlueOrange12_8", "BlueOrange12_9", "BlueOrange12_10", "BlueOrange12_11", "BlueOrange12_12", "BlueOrange8_2", "BlueOrange8_3", "BlueOrange8_4", "BlueOrange8_5", "BlueOrange8_6", "BlueOrange8_7", "BlueOrange8_8", "BlueOrangeRed_2", "BlueOrangeRed_3", "BlueOrangeRed_4", "BlueOrangeRed_5", "BlueOrangeRed_6", "BlueOrangeRed_7", "BlueOrangeRed_8", "BlueOrangeRed_9", "BlueOrangeRed_10", "BlueOrangeRed_11", "BlueOrangeRed_12", "BlueOrangeRed_13", "BlueOrangeRed_14", "BrownBlue10_2", "BrownBlue10_3", "BrownBlue10_4", "BrownBlue10_5", "BrownBlue10_6", "BrownBlue10_7", "BrownBlue10_8", "BrownBlue10_9", "BrownBlue10_10", "BrownBlue12_2", "BrownBlue12_3", "BrownBlue12_4", "BrownBlue12_5", "BrownBlue12_6", "BrownBlue12_7", "BrownBlue12_8", "BrownBlue12_9", "BrownBlue12_10", "BrownBlue12_11", "BrownBlue12_12", "GreenMagenta_2", "GreenMagenta_3", "GreenMagenta_4", "GreenMagenta_5", "GreenMagenta_6", "GreenMagenta_7", "GreenMagenta_8", "GreenMagenta_9", "GreenMagenta_10", "GreenMagenta_11", "GreenMagenta_12", "GreenMagenta_13", "GreenMagenta_14", "GreenMagenta_15", "GreenMagenta_16", "RedYellowBlue_2", "RedYellowBlue_3", "RedYellowBlue_4", "RedYellowBlue_5", "RedYellowBlue_6", "RedYellowBlue_7", "RedYellowBlue_8", "RedYellowBlue_9", "RedYellowBlue_10", "RedYellowBlue_11"],
    "palettable.lightbartlein.sequential" : ["Blues10_2", "Blues10_3", "Blues10_4", "Blues10_5", "Blues10_6", "Blues10_7", "Blues10_8", "Blues10_9", "Blues10_10", "Blues7_2", "Blues7_3", "Blues7_4", "Blues7_5", "Blues7_6", "Blues7_7"],
    "palettable.matplotlib" : ["Inferno_3", "Inferno_4", "Inferno_5", "Inferno_6", "Inferno_7", "Inferno_8", "Inferno_9", "Inferno_10", "Inferno_11", "Inferno_12", "Inferno_13", "Inferno_14", "Inferno_15", "Inferno_16", "Inferno_17", "Inferno_18", "Inferno_19", "Inferno_20", "Magma_3", "Magma_4", "Magma_5", "Magma_6", "Magma_7", "Magma_8", "Magma_9", "Magma_10", "Magma_11", "Magma_12", "Magma_13", "Magma_14", "Magma_15", "Magma_16", "Magma_17", "Magma_18", "Magma_19", "Magma_20", "Plasma_3", "Plasma_4", "Plasma_5", "Plasma_6", "Plasma_7", "Plasma_8", "Plasma_9", "Plasma_10", "Plasma_11", "Plasma_12", "Plasma_13", "Plasma_14", "Plasma_15", "Plasma_16", "Plasma_17", "Plasma_18", "Plasma_19", "Plasma_20", "Viridis_3", "Viridis_4", "Viridis_5", "Viridis_6", "Viridis_7", "Viridis_8", "Viridis_9", "Viridis_10", "Viridis_11", "Viridis_12", "Viridis_13", "Viridis_14", "Viridis_15", "Viridis_16", "Viridis_17", "Viridis_18", "Viridis_19", "Viridis_20"],
    "palettable.mycarta": ["Cube1_3", "Cube1_4", "Cube1_5", "Cube1_6", "Cube1_7", "Cube1_8", "Cube1_9", "Cube1_10", "Cube1_11", "Cube1_12", "Cube1_13", "Cube1_14", "Cube1_15", "Cube1_16", "Cube1_17", "Cube1_18", "Cube1_19", "Cube1_20", "CubeYF_3", "CubeYF_4", "CubeYF_5", "CubeYF_6", "CubeYF_7", "CubeYF_8", "CubeYF_9", "CubeYF_10", "CubeYF_11", "CubeYF_12", "CubeYF_13", "CubeYF_14", "CubeYF_15", "CubeYF_16", "CubeYF_17", "CubeYF_18", "CubeYF_19", "CubeYF_20", "LinearL_3", "LinearL_4", "LinearL_5", "LinearL_6", "LinearL_7", "LinearL_8", "LinearL_9", "LinearL_10", "LinearL_11", "LinearL_12", "LinearL_13", "LinearL_14", "LinearL_15", "LinearL_16", "LinearL_17", "LinearL_18", "LinearL_19", "LinearL_20"],
    "palettable.scientific.diverging" : ["Berlin_3", "Berlin_4", "Berlin_5", "Berlin_6", "Berlin_7", "Berlin_8", "Berlin_9", "Berlin_10", "Berlin_11", "Berlin_12", "Berlin_13", "Berlin_14", "Berlin_15", "Berlin_16", "Berlin_17", "Berlin_18", "Berlin_19", "Berlin_20", "Broc_3", "Broc_4", "Broc_5", "Broc_6", "Broc_7", "Broc_8", "Broc_9", "Broc_10", "Broc_11", "Broc_12", "Broc_13", "Broc_14", "Broc_15", "Broc_16", "Broc_17", "Broc_18", "Broc_19", "Broc_20", "Cork_3", "Cork_4", "Cork_5", "Cork_6", "Cork_7", "Cork_8", "Cork_9", "Cork_10", "Cork_11", "Cork_12", "Cork_13", "Cork_14", "Cork_15", "Cork_16", "Cork_17", "Cork_18", "Cork_19", "Cork_20", "Lisbon_3", "Lisbon_4", "Lisbon_5", "Lisbon_6", "Lisbon_7", "Lisbon_8", "Lisbon_9", "Lisbon_10", "Lisbon_11", "Lisbon_12", "Lisbon_13", "Lisbon_14", "Lisbon_15", "Lisbon_16", "Lisbon_17", "Lisbon_18", "Lisbon_19", "Lisbon_20", "Roma_3", "Roma_4", "Roma_5", "Roma_6", "Roma_7", "Roma_8", "Roma_9", "Roma_10", "Roma_11", "Roma_12", "Roma_13", "Roma_14", "Roma_15", "Roma_16", "Roma_17", "Roma_18", "Roma_19", "Roma_20", "Tofino_3", "Tofino_4", "Tofino_5", "Tofino_6", "Tofino_7", "Tofino_8", "Tofino_9", "Tofino_10", "Tofino_11", "Tofino_12", "Tofino_13", "Tofino_14", "Tofino_15", "Tofino_16", "Tofino_17", "Tofino_18", "Tofino_19", "Tofino_20", "Vik_3", "Vik_4", "Vik_5", "Vik_6", "Vik_7", "Vik_8", "Vik_9", "Vik_10", "Vik_11", "Vik_12", "Vik_13", "Vik_14", "Vik_15", "Vik_16", "Vik_17", "Vik_18", "Vik_19", "Vik_20"],
    "palettable.scientific.sequential": ["Acton_3", "Acton_4", "Acton_5", "Acton_6", "Acton_7", "Acton_8", "Acton_9", "Acton_10", "Acton_11", "Acton_12", "Acton_13", "Acton_14", "Acton_15", "Acton_16", "Acton_17", "Acton_18", "Acton_19", "Acton_20", "Bamako_3", "Bamako_4", "Bamako_5", "Bamako_6", "Bamako_7", "Bamako_8", "Bamako_9", "Bamako_10", "Bamako_11", "Bamako_12", "Bamako_13", "Bamako_14", "Bamako_15", "Bamako_16", "Bamako_17", "Bamako_18", "Bamako_19", "Bamako_20", "Batlow_3", "Batlow_4", "Batlow_5", "Batlow_6", "Batlow_7", "Batlow_8", "Batlow_9", "Batlow_10", "Batlow_11", "Batlow_12", "Batlow_13", "Batlow_14", "Batlow_15", "Batlow_16", "Batlow_17", "Batlow_18", "Batlow_19", "Batlow_20", "Bilbao_3", "Bilbao_4", "Bilbao_5", "Bilbao_6", "Bilbao_7", "Bilbao_8", "Bilbao_9", "Bilbao_10", "Bilbao_11", "Bilbao_12", "Bilbao_13", "Bilbao_14", "Bilbao_15", "Bilbao_16", "Bilbao_17", "Bilbao_18", "Bilbao_19", "Bilbao_20", "Buda_3", "Buda_4", "Buda_5", "Buda_6", "Buda_7", "Buda_8", "Buda_9", "Buda_10", "Buda_11", "Buda_12", "Buda_13", "Buda_14", "Buda_15", "Buda_16", "Buda_17", "Buda_18", "Buda_19", "Buda_20", "Davos_3", "Davos_4", "Davos_5", "Davos_6", "Davos_7", "Davos_8", "Davos_9", "Davos_10", "Davos_11", "Davos_12", "Davos_13", "Davos_14", "Davos_15", "Davos_16", "Davos_17", "Davos_18", "Davos_19", "Davos_20", "Devon_3", "Devon_4", "Devon_5", "Devon_6", "Devon_7", "Devon_8", "Devon_9", "Devon_10", "Devon_11", "Devon_12", "Devon_13", "Devon_14", "Devon_15", "Devon_16", "Devon_17", "Devon_18", "Devon_19", "Devon_20", "GrayC_3", "GrayC_4", "GrayC_5", "GrayC_6", "GrayC_7", "GrayC_8", "GrayC_9", "GrayC_10", "GrayC_11", "GrayC_12", "GrayC_13", "GrayC_14", "GrayC_15", "GrayC_16", "GrayC_17", "GrayC_18", "GrayC_19", "GrayC_20", "Hawaii_3", "Hawaii_4", "Hawaii_5", "Hawaii_6", "Hawaii_7", "Hawaii_8", "Hawaii_9", "Hawaii_10", "Hawaii_11", "Hawaii_12", "Hawaii_13", "Hawaii_14", "Hawaii_15", "Hawaii_16", "Hawaii_17", "Hawaii_18", "Hawaii_19", "Hawaii_20", "Imola_3", "Imola_4", "Imola_5", "Imola_6", "Imola_7", "Imola_8", "Imola_9", "Imola_10", "Imola_11", "Imola_12", "Imola_13", "Imola_14", "Imola_15", "Imola_16", "Imola_17", "Imola_18", "Imola_19", "Imola_20", "LaJolla_3", "LaJolla_4", "LaJolla_5", "LaJolla_6", "LaJolla_7", "LaJolla_8", "LaJolla_9", "LaJolla_10", "LaJolla_11", "LaJolla_12", "LaJolla_13", "LaJolla_14", "LaJolla_15", "LaJolla_16", "LaJolla_17", "LaJolla_18", "LaJolla_19", "LaJolla_20", "LaPaz_3", "LaPaz_4", "LaPaz_5", "LaPaz_6", "LaPaz_7", "LaPaz_8", "LaPaz_9", "LaPaz_10", "LaPaz_11", "LaPaz_12", "LaPaz_13", "LaPaz_14", "LaPaz_15", "LaPaz_16", "LaPaz_17", "LaPaz_18", "LaPaz_19", "LaPaz_20", "Nuuk_3", "Nuuk_4", "Nuuk_5", "Nuuk_6", "Nuuk_7", "Nuuk_8", "Nuuk_9", "Nuuk_10", "Nuuk_11", "Nuuk_12", "Nuuk_13", "Nuuk_14", "Nuuk_15", "Nuuk_16", "Nuuk_17", "Nuuk_18", "Nuuk_19", "Nuuk_20", "Oleron_3", "Oleron_4", "Oleron_5", "Oleron_6", "Oleron_7", "Oleron_8", "Oleron_9", "Oleron_10", "Oleron_11", "Oleron_12", "Oleron_13", "Oleron_14", "Oleron_15", "Oleron_16", "Oleron_17", "Oleron_18", "Oleron_19", "Oleron_20", "Oslo_3", "Oslo_4", "Oslo_5", "Oslo_6", "Oslo_7", "Oslo_8", "Oslo_9", "Oslo_10", "Oslo_11", "Oslo_12", "Oslo_13", "Oslo_14", "Oslo_15", "Oslo_16", "Oslo_17", "Oslo_18", "Oslo_19", "Oslo_20", "Tokyo_3", "Tokyo_4", "Tokyo_5", "Tokyo_6", "Tokyo_7", "Tokyo_8", "Tokyo_9", "Tokyo_10", "Tokyo_11", "Tokyo_12", "Tokyo_13", "Tokyo_14", "Tokyo_15", "Tokyo_16", "Tokyo_17", "Tokyo_18", "Tokyo_19", "Tokyo_20", "Turku_3", "Turku_4", "Turku_5", "Turku_6", "Turku_7", "Turku_8", "Turku_9", "Turku_10", "Turku_11", "Turku_12", "Turku_13", "Turku_14", "Turku_15", "Turku_16", "Turku_17", "Turku_18", "Turku_19", "Turku_20"],
    "palettable.tableau" : ["BlueRed_6", "BlueRed_12", "ColorBlind_10", "Gray_5", "GreenOrange_6", "GreenOrange_12", "PurpleGray_6", "PurpleGray_12", "Tableau_10", "Tableau_20", "TableauLight_10", "TableauMedium_10", "TrafficLight_9"],
    "palettable.wesanderson" : ["Aquatic1_5", "Aquatic2_5", "Aquatic3_5", "Cavalcanti_5", "Chevalier_4", "Darjeeling1_4", "Darjeeling2_5", "Darjeeling3_5", "Darjeeling4_5", "FantasticFox1_5", "FantasticFox2_5", "GrandBudapest1_4", "GrandBudapest2_4", "GrandBudapest3_6", "GrandBudapest4_5", "GrandBudapest5_5", "IsleOfDogs1_5", "IsleOfDogs2_6", "IsleOfDogs3_4", "Margot1_5", "Margot2_4", "Margot3_4", "Mendl_4", "Moonrise1_5", "Moonrise2_4", "Moonrise3_4", "Moonrise4_5", "Moonrise5_6", "Moonrise6_5", "Moonrise7_5", "Royal1_4", "Royal2_5", "Royal3_5", "Zissou_5"]
}

#As data to be displayed(1, 256)Create an array of.
gradient = np.linspace(0, 1, 256).reshape(1, -1)

def plot_color_maps(cmap_category, cmap_list):
    num_cmaps = len(cmap_list)
    fig, axes = plt.subplots(num_cmaps, 2, figsize=(10, num_cmaps * 0.35))
    fig.subplots_adjust(wspace=0.6)
    axes[0][0].set_title(cmap_category + ' colormaps', fontsize=14, x=1.2)
    
    def plot_color_map(ax, gradient, cmap, name):
        ax.imshow(gradient, aspect='auto', cmap=eval(cmap+".mpl_colormap"))
        ax.set_axis_off()
        ax.text(-10, 0, name, va='center', ha='right', fontsize=10)
    
    for [axL, axR], name in zip(axes, cmap_list):
        cmap = cmap_category + "." + name
        plot_color_map(axL, gradient, cmap, name)
        plot_color_map(axR, gradient, cmap + '_r', name + '_r')

for cmap_category, cmap_list in cmaps.items():
    plot_color_maps(cmap_category, cmap_list)
    plt.show()

def plot_colors(cmap_category, cmap_list, category_num):
    num_cmaps = len(cmap_list)
    fig, axes = plt.subplots(num_cmaps, 2, figsize=(10, num_cmaps * 0.35))
    fig.subplots_adjust(wspace=0.6)
    axes[0][0].set_title(cmap_category + ' colors', fontsize=14, x=1.2)
    
    def plot_color_map(ax, gradient, cmap, name, category_num):
        gradient = np.arange(256).reshape(1, -1) // (256/int(name.split("_")[1]))
        gradient = gradient/np.max(gradient)
        ax.imshow(gradient, aspect="auto", cmap=eval(cmap+".mpl_colormap"))
        ax.set_axis_off()
        ax.text(-10, 0, name, va='center', ha='right', fontsize=10)
    
    for [axL, axR], name in zip(axes, cmap_list):
        cmap = cmap_category + "." + name
        plot_color_map(axL, gradient, cmap, name, category_num)
        plot_color_map(axR, gradient, cmap + '_r', name + '_r', category_num)

for cmap_category, cmap_list in cmaps.items():
    plot_colors(cmap_category, cmap_list, len(cmap_list))
    plt.show()

Recommended Posts

palettable color map list
Color code list
Introducing the color map extension library palettable
matplotlib Color list creation
[Python] Adjusted the color map standard
map