1. list_palettes() - Browse Available Palettes¶
Discover all available palettes, with filtering and categorization options.
Total palettes available: 106 First 20 palettes: ['BottleRocket', 'BottleRocket2', 'Cavalcanti', 'Chevalier', 'Darjeeling', 'Darjeeling2', 'FantasticFox', 'GrandBudapest', 'GrandBudapest2', 'Moonrise1', 'Moonrise2', 'Moonrise3', 'Royal1', 'Royal2', 'Rushmore', 'Zissou', 'algae_earth', 'aqua_brick', 'aqua_tan', 'berry']
Flame palettes (10): ['flame_artic', 'flame_blind', 'flame_flame', 'flame_light', 'flame_macaw', 'flame_polar', 'flame_volts', 'flame_watts', 'flame_weird', 'flame_wings'] Solar palettes (6): ['solar_basic', 'solar_blues', 'solar_extra', 'solar_flare', 'solar_glare', 'solar_rojos'] Ocean palettes (8): ['ocean_aqua', 'ocean_brick', 'ocean_citrus', 'ocean_earth', 'ocean_green', 'ocean_pink', 'ocean_red', 'ocean_teal']
Palettes by category: WESANDERSON (16): BottleRocket, BottleRocket2, Cavalcanti, Chevalier, Darjeeling... SPECIAL (2): corona, lawhoops SOLAR (11): samba_color, samba_light, samba_night, solar_basic, solar_blues... FLAME (10): flame_artic, flame_blind, flame_flame, flame_light, flame_macaw... OCEAN (20): aqua_brick, aqua_tan, blue_cyan, cyan_brick, cyan_green... CALMA (6): calma_azules, calma_bosque, calma_manudo, calma_marino, calma_morado... CHINA (7): china_basics, china_dragon, china_novice, china_ranges, china_sunset... BREWER (13): brewer_blue, brewer_celsius, brewer_fire, brewer_green, brewer_heat... COLOR_GRADIENTS (16): algae_earth, berry, citric, citric_yellow, forest... DARK (4): dark_blue, dark_citrus, dark_violet, dusk_dawn OTHER (1): citrus
2. display_palette() - Visualize Palettes¶
Display palettes as horizontal color bars.
Original palette:
Interpolated to 21 colors:
3. get_palette() - Extract Colors¶
Get colors from palettes for use in your plots.
Cavalcanti palette: ['#D8B70A', '#02401B', '#A2A475', '#81A88D', '#972D15'] First 3 colors: ['#D8B70A', '#02401B', '#A2A475'] Colors at indices [0, 2, 4]: ['#D8B70A', '#A2A475', '#972D15'] Berry palette interpolated to 10 colors: ['#7700ff', '#8600f1', '#9500e3', '#a400d5', '#b300c7', '#c300b8', '#d200aa', '#e1009c', '#f0008e', '#ff0080']
Zissou palette as RGB: [[0.23137255 0.60392157 0.69803922 1. ] [0.47058824 0.71764706 0.77254902 1. ] [0.92156863 0.8 0.16470588 1. ] [0.88235294 0.68627451 0. 1. ] [0.94901961 0.10196078 0. 1. ]] Shape: (5, 4)
4. Using Palettes with Matplotlib¶
All BuenColors palettes are automatically registered with matplotlib as colormaps.
Reversed Palettes¶
All palettes have reversed versions with the _r suffix.
5. Discrete Color Usage for Categorical Data¶
Using palette colors for categorical/discrete data visualization.
6. Wes Anderson Palettes¶
BuenColors includes all palettes from the wesanderson R package.
Wes Anderson Inspired Palettes:
7. Scientific Visualization Palettes¶
Palettes designed for scientific data visualization.
Brewer (ColorBrewer-inspired) Palettes:
8. Custom Color Gradients¶
Specialized gradients for unique visualization needs.
horizon: Dark to bright gradient
dark_citrus: Black to lime green
dark_violet: Black to magenta
cyan_pink: Cyan to pink gradient
purple_baby: Purple to baby blue
teal_orange: Teal to orange
9. Gallery: All Palette Categories¶
Browse palettes by category.
============================================================ WESANDERSON PALETTES (16 total) ============================================================
============================================================ SPECIAL PALETTES (2 total) ============================================================
============================================================ SOLAR PALETTES (11 total) ============================================================
============================================================ FLAME PALETTES (10 total) ============================================================
============================================================ OCEAN PALETTES (20 total) ============================================================
============================================================ CALMA PALETTES (6 total) ============================================================
============================================================ CHINA PALETTES (7 total) ============================================================
============================================================ BREWER PALETTES (13 total) ============================================================
============================================================ COLOR_GRADIENTS PALETTES (16 total) ============================================================
============================================================ DARK PALETTES (4 total) ============================================================
============================================================ OTHER PALETTES (1 total) ============================================================
Summary¶
BuenColors provides comprehensive palette functionality:
list_palettes()- Browse and filter 117+ palettesdisplay_palette()- Visualize palettesget_palette()- Extract colors for use in plots- Automatic matplotlib integration - All palettes work as colormaps
- Reversed variants - All palettes have
_rversions - Multiple categories - Wes Anderson, scientific, gradients, and more
Perfect for:
- Publication-quality figures
- Scientific visualization
- Data exploration
- Categorical data
- Heatmaps and continuous data
All palettes are pythonic implementations inspired by the R BuenColors package!