Skip to content

Commit

Permalink
Adding Fabion Crameri's Scientific Colour-Maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed Sep 7, 2019
1 parent 1f38018 commit d932b08
Show file tree
Hide file tree
Showing 15 changed files with 6,530 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/gendocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
'palettable.cartocolors.sequential': './cartocolors/sequential',
'palettable.lightbartlein.diverging': './lightbartlein/diverging',
'palettable.lightbartlein.sequential': './lightbartlein/sequential',
'palettable.scientific.diverging': './scientific/diverging',
'palettable.scientific.sequential': './scientific/sequential',
}


Expand Down
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Palettable has color palettes from:
- [Light & Bartlein][lightbartlein]
- [matplotlib][matplotlib]
- [MyCarta][mycarta]
- [Scientific][scientific]
- [Tableau][tableau]
- The [Wes Anderson Palettes][wesanderson] blog

Expand Down Expand Up @@ -55,6 +56,8 @@ The modules with palettes are:
- [`palettable.lightbartlein.sequential`][lightbartlein/sequential]
- [`palettable.matplotlib`][matplotlib]
- [`palettable.mycarta`][mycarta]
- [`palettable.scientific.diverging`][scientific/diverging]
- [`palettable.scientific.sequential`][scientific/sequential]
- [`palettable.tableau`][tableau]
- [`palettable.wesanderson`][wesanderson]

Expand Down
27 changes: 27 additions & 0 deletions docs/scientific/diverging/index.md.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: 'scientific : Diverging'
layout: page
content: []
---

Diverging palettes taken from
[Scientific Colour-Maps](http://www.fabiocrameri.ch/colourmaps.php).

# Contents

{% for p in palettes %}
- [{{p}}](#{{p | lower}})
{%- endfor %}

# Previews

{% for p in palettes %}
<section id="{{p | lower}}">
<p class="h4">{{p}}</p>

<div><img src="./img/{{p + '_continuous.png'}}" alt="{{p + ' continuous'}}"></div>
<br>
<img src="./img/{{p + '_discrete.png'}}" alt="{{p + ' discrete'}}">

</section>
{% endfor %}
13 changes: 13 additions & 0 deletions docs/scientific/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: 'Scientific'
layout: simple_page
content: []
---

Scientific palettes are made by
[Fabio Crameri](http://www.fabiocrameri.ch/colourmaps.php).
All Scientific palettes are available with up to 256 discreetly defined colors.
They come in two sub-modules grouped by their use:

- [`palettable.scientific.diverging`][diverging]
- [`palettable.scientific.sequential`][sequential]
27 changes: 27 additions & 0 deletions docs/scientific/sequential/index.md.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: 'scientific : Sequential'
layout: page
content: []
---

Sequential palettes taken from
[Scientific Colour-Maps](http://www.fabiocrameri.ch/colourmaps.php).

# Contents

{% for p in palettes %}
- [{{p}}](#{{p | lower}})
{%- endfor %}

# Previews

{% for p in palettes %}
<section id="{{p | lower}}">
<p class="h4">{{p}}</p>

<div><img src="./img/{{p + '_continuous.png'}}" alt="{{p + ' continuous'}}"></div>
<br>
<img src="./img/{{p + '_discrete.png'}}" alt="{{p + ' discrete'}}">

</section>
{% endfor %}
1 change: 1 addition & 0 deletions palettable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from . import lightbartlein
from . import matplotlib
from . import mycarta
from . import scientific
from . import wesanderson
from . import tableau

Expand Down
2 changes: 0 additions & 2 deletions palettable/cartocolors/sequential.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"""
from __future__ import absolute_import

import itertools

from . import cartocolorspalette
from . import colormaps
from .. import utils
Expand Down
3 changes: 3 additions & 0 deletions palettable/scientific/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from __future__ import absolute_import

from . import diverging, sequential

0 comments on commit d932b08

Please sign in to comment.