Jul 09, 2026 — Digital Edition
George Ideas
Independent Journalism & Insight
Feature

Matplotlib Color Palettes: A Comprehensive List

Matplotlib, a widely-used data visualization library in Python, offers a rich palette of colors to enhance your plots. Understanding the available color palettes is crucial for creating visually appealing and informative graphs. Let's delve into the list of color palettes provided by Matplotlib and explore how to use them effectively.

there are four different colors on the waterlily with lily pads in the foreground
there are four different colors on the waterlily with lily pads in the foreground

Matplotlib's color palettes are designed to help you create visually distinct and aesthetically pleasing plots. They are categorized into several types, each serving a unique purpose. Let's explore these categories and some of their key palettes.

List of named colors
List of named colors

Sequential Color Palettes

Sequential palettes are ideal for representing a single variable, such as temperature or elevation. They use a series of colors that progress from low to high values, making it easy to distinguish between different magnitudes.

Ещё больше летних палитр в тгк @designbykristine☀️ Переходите и подписывайтесь
Ещё больше летних палитр в тгк @designbykristine☀️ Переходите и подписывайтесь

One of the most commonly used sequential palettes is viridis. It offers excellent color contrast and is perceptually uniform, meaning that equal distances in color value correspond to equal differences in the data. Other notable sequential palettes include inferno, plasma, and magma, each with its unique color gradient.

Diverging Color Palettes

Colour Palette Ideas, Warm Colours, Spring Wedding Ideas, Color Scheme, Late Summer Wedding Colors, Enchanted Forest Color Palette, Vintage Color Palette, Wedding Colour Schemes, Summer Colour Palette
Colour Palette Ideas, Warm Colours, Spring Wedding Ideas, Color Scheme, Late Summer Wedding Colors, Enchanted Forest Color Palette, Vintage Color Palette, Wedding Colour Schemes, Summer Colour Palette

Diverging palettes are perfect for visualizing data with a center point, such as temperature ranges or political maps. They have a central color that represents the midpoint, with colors diverging on either side to represent increasing or decreasing values.

A popular diverging palette is RdBu, which ranges from red (low values) through white (midpoint) to blue (high values). Other diverging palettes include PuOr, BrBG, and RdGy, each with its distinct color scheme.

Qualitative Color Palettes

Colours With Hex Codes, Color Palette 15 Colors, Striking Color Palette, Colors Hex Codes, 5 Color Combinations, Excel Spreadsheet Color Schemes, Website Palette, Patio Color Palette, Clothing Brand Color Palette Ideas
Colours With Hex Codes, Color Palette 15 Colors, Striking Color Palette, Colors Hex Codes, 5 Color Combinations, Excel Spreadsheet Color Schemes, Website Palette, Patio Color Palette, Clothing Brand Color Palette Ideas

Qualitative palettes are designed for categorizing data with no inherent order, such as species types or countries. They consist of distinct, easily differentiable colors that can be used to represent different categories.

One of the most well-known qualitative palettes is tab10, which consists of ten distinct colors. Other qualitative palettes include tab20, tab20b, and tab20c, offering a wider range of colors for larger datasets.

Customizing Color Palettes

Pink and sage aesthetic color palette with soft neutral tones, including cream, blush, rosewood, green and blue shades.
Pink and sage aesthetic color palette with soft neutral tones, including cream, blush, rosewood, green and blue shades.

Matplotlib also allows you to create and customize your color palettes. You can define your own palettes using a list of colors or by interpolating between a set of colors. This flexibility enables you to create visually appealing and unique plots that cater to your specific needs.

To create a custom palette, you can use the LinearSegmentedColormap or ListedColormap classes in Matplotlib. These classes allow you to define your color palette using a list of colors or by specifying the color segments and their positions.

Color Combinaisons: Palette for Graphic Design #62
Color Combinaisons: Palette for Graphic Design #62
Nature-Inspired Color Palette 🌿 | Cozy Earth Tones for Home & Branding
Nature-Inspired Color Palette 🌿 | Cozy Earth Tones for Home & Branding
paleta de colores dti
paleta de colores dti
Color Combinaisons: Palette for Graphic Design #130
Color Combinaisons: Palette for Graphic Design #130
5 Colour Pallet Covers "Mosslands" Aesthetic Themed 💚
5 Colour Pallet Covers "Mosslands" Aesthetic Themed 💚
a bunch of flowers that are in the middle of some type of font and numbers
a bunch of flowers that are in the middle of some type of font and numbers
Color Palette 059
Color Palette 059
Color Palette #627
Color Palette #627
Color Palette 008
Color Palette 008
Color Palette 124
Color Palette 124
Color Palette 091
Color Palette 091
muted spring color palette
muted spring color palette
Color Palette 076
Color Palette 076
Color Palette 147
Color Palette 147
Color palette
Color palette
5 Colour Pallet Covers "Hula Girl" Aesthetic Themed ❤️
5 Colour Pallet Covers "Hula Girl" Aesthetic Themed ❤️
Color Palette 092
Color Palette 092
Purple Cabbage Leaf Palette
Purple Cabbage Leaf Palette
some pink flowers with green leaves and blue sky in the background
some pink flowers with green leaves and blue sky in the background
World of Color Procreate Palette Bundle: 30 Palettes, 900 Swatches (digital Download) - Etsy
World of Color Procreate Palette Bundle: 30 Palettes, 900 Swatches (digital Download) - Etsy

In conclusion, Matplotlib's extensive list of color palettes empowers you to create visually striking and informative plots. By understanding the different types of palettes and their uses, you can effectively communicate your data's story. Don't be afraid to experiment with custom palettes to create truly unique visualizations. Happy plotting!