Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ Creating new categorical colour palettes is as easy as single function call.
# Create a muted palette with 12 colours
glasbey.create_palette(palette_size=12, lightness_bounds=(20, 40), chroma_bounds=(40, 50))

# Make it accessible as a matplotlib colormap
from matplotlib.colors import ListedColormap
cmap = ListedColormap(glasbey.create_palette())

It is also easy to extend an existing palette, or create a new palette from some seed colours.

.. code:: python3
Expand Down