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

Skip to content

Commit d18f07d

Browse files
committed
Comments. Add entry to CHANGELOG and whats_new.rst.
1 parent ab31305 commit d18f07d

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2014-05-02 Added colorblind-friendly colormap, named 'Wistia'.
2+
13
2014-04-27 Improved input clean up in Axes.{h|v}lines
24
Coerce input into a 1D ndarrays (after dealing with units).
35

doc/users/whats_new.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ revision, see the :ref:`github-stats`.
2323
new in matplotlib-1.4
2424
=====================
2525

26+
27+
New colormap
28+
------------
29+
In heatmaps, a green-to-red spectrum is often used to indicate intensity of
30+
activity, but this can be problematic for the red/green colorblind. A new,
31+
colorblind-friendly colormap is now available at :class:`matplotlib.cm.Wistia`.
32+
This colormap maintains the red/green symbolism while achieving deuteranopic
33+
legibility through brightness variations. See
34+
`here <https://github.com/wistia/heatmap-palette>`
35+
for more information.
36+
2637
Documentation changes
2738
---------------------
2839

lib/matplotlib/_cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ def gfunc32(x):
18911891
(1.000, 1.00, 1.00))}
18921892

18931893

1894-
# A color-blind-friendly heatmap from Wistia:
1894+
# An MIT licensed, colorblind-friendly heatmap from Wistia:
18951895
# https://github.com/wistia/heatmap-palette
18961896
# http://wistia.com/blog/heatmaps-for-colorblindness
18971897
#

0 commit comments

Comments
 (0)