Skip to content

Commit

Permalink
Updated README.md to include RGB values
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJWright authored Aug 10, 2017
1 parent 4d76bb7 commit def3681
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Colour"Blind"
A collection of colour blind friendly colour tables for both discrete and continuous data, provided for use with the Interactive Data Language (IDL).
A collection of colour blind friendly colour tables for both discrete and continuous data, provided for use with the Interactive Data Language (IDL). RGB values can additionally be found within the code descriptions below.

This repository was inspired after many people approached me to judge the colour blind friendliness of their plots. The final aim of this repository is to collate colours tables from many sources (see "code descriptions and their origins") and provide them in an easy-to-use format.

Expand Down Expand Up @@ -76,14 +76,21 @@ xpalette ;xpalette will display the colour table
; plot as normal, i.e.:
plot,x,y,color=0 ;color = 0 through 8
```

where the RGB values are:
```IDL
R = [68,102,34,204,238,170,187]
G = [119,204,136,187,102,51,187]
B = [170,238,51,68,119,119,187]
```

![colorblind.pro xpalette](https://github.com/PaulJWright/ColourBlind/blob/master/images/colorblind.png)


**colorblind2.pro:**

A set of 7 (+ black and white) colour blind friendly colours. These colours are more vibrant than **colorblind.pro**. Inspired in some part by [Wong, B. Nat. Methods 8, 441 (2011)](https://www.nature.com/nmeth/journal/v8/n6/full/nmeth.1618.html).


```IDL
.compile colorblind2.pro
colorblind2, n_colors=7, /ploteps
Expand All @@ -93,6 +100,14 @@ xpalette ;xpalette will display the colour table
; plot as normal, i.e.:
plot,x,y,color=0 ;color = 0 through 8
```

where the RGB values are:
```IDL
R = [0,86,0,240,230,213,187]
G = [114,180,158,228,159,94,187]
B = [178,233,115,66,0,0,187]
```

![colorblind2.pro xpalette](https://github.com/PaulJWright/ColourBlind/blob/master/images/cb2.png)


Expand All @@ -101,7 +116,6 @@ plot,x,y,color=0 ;color = 0 through 8
A set of 6 (+ black and white) colour blind friendly colours based on those used by [NPR (Credit: Katie Park, Alyson Hurt, Tyler Fisher and Lisa Charlotte Rost/NPR)
](http://www.npr.org/2016/04/18/474256366/why-americas-schools-have-a-money-problem).


```IDL
.compile npr_colors.pro
npr_colors
Expand All @@ -111,6 +125,13 @@ xpalette ;xpalette will display the colour table
plot,x,y,color=0 ;color = 0 through 8
```

where the RGB values are:
```IDL
R = [224,240,231,82,0,237]
G = [70,159,223,192,98,237]
B = [6,82,190,173,100,237]
```

![NPR Colours](https://github.com/PaulJWright/ColourBlind/blob/master/images/npr_colorblind3.png)
---------------------

Expand Down

0 comments on commit def3681

Please sign in to comment.