Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e06ebbd

Browse files
committed
Add ten-color accessible color cycle as style sheet.
Color cycle survey palette from Petroff (2021): https://arxiv.org/abs/2107.02270 https://github.com/mpetroff/accessible-color-cycles
1 parent 6166e5b commit e06ebbd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
New more-accessible color cycle
2+
-------------------------------
3+
4+
A new color cycle named 'ccs10' was added. This cycle was constructed using a
5+
combination of algorithmically-enforced accessibility constraints, including
6+
color-vision-deficiency modeling, and a machine-learning-based aesthetics model
7+
developed from a crowdsourced color-preference survey. It aims to be both
8+
generally pleasing aesthetically and colorblind accessible such that it could
9+
serve as a default in the aim of universal design. For more details
10+
see `Petroff, M. A.: "Accessible Color Sequences for Data Visualization"
11+
<https://arxiv.org/abs/2107.02270>`_ and related `SciPy talk`_. A demonstration
12+
is included in the style sheets reference_. To load this color cycle in place
13+
of the default::
14+
15+
import matplotlib.pyplot as plt
16+
plt.style.use('ccs10')
17+
18+
.. _reference: https://matplotlib.org/gallery/style_sheets/style_sheets_reference.html
19+
.. _SciPy talk: https://www.youtube.com/watch?v=Gapv8wR5DYU
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Color cycle survey palette from Petroff (2021):
2+
# https://arxiv.org/abs/2107.02270
3+
# https://github.com/mpetroff/accessible-color-cycles
4+
axes.prop_cycle: cycler('color', ['3f90da', 'ffa90e', 'bd1f01', '94a4a2', '832db6', 'a96b59', 'e76300', 'b9ac70', '717581', '92dadd'])
5+
patch.facecolor: 3f90da

0 commit comments

Comments
 (0)