qualpal.get_palette
Python · python · 1.1.0
-> Get a specific named color palette.
Parameters
name : str
Palette name in format “package:palette” (e.g., “ColorBrewer:Set2”). Use list_palettes() to see available options.
Returns
Palette
A Palette object containing all colors from the named palette.
Raises
ValueErrorIf palette name is not in “package:palette” format.
RuntimeErrorIf palette name is not found or cannot be loaded.
Examples
>>>
>>> =
>>>
8
>>>
>>> # Display the palette
>>> # doctest: +SKIP