| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6166e5b commit e06ebbd
2 files changed
| Original file line number | Diff line number | Diff 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 | ||
| Original file line number | Diff line number | Diff 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments