scPyviewer.get_palette#
- scPyviewer.get_palette(name='okabe-ito')[source]#
Return a named qualitative colour palette as a list of hex strings.
- Parameters:
name (str) –
One of:
"okabe-ito"— colour-blind-safe Okabe & Ito palette (default)"publication"— muted print-friendly in-house set"npg"— Nature Publishing Group"aaas"— Science / AAAS"nejm"— New England Journal of Medicine"lancet"— The Lancet"jama"— JAMA
The journal palettes match the colour schemes popularised by the ggsci R package;
"okabe-ito"is the most colour-vision-deficiency safe.- Return type:
Examples
>>> sv.get_palette("npg")[:3] ['#E64B35', '#4DBBD5', '#00A087']