Skip to content

Commit

Permalink
fix title and change default
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bury committed Jun 14, 2021
1 parent b60ed50 commit 651fbf0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This package is heavily based on the [Event Horyzon Plot package](https://github

## Motivation

The accurate representation of data is essential in science communication. However, common color maps visually distort data through uneven colour gradients and are often unreadable to those with color-vision deficiency. An infamous example is the jet or rainbow-like color maps. These color maps do not render all the information you want to illustrate or even worse render false information through artefacts. Scientist or not, your goal is to communicate visual information in the most accurate and appealing fashion. Moreover, do not overlook color-vision deficiency, which represents 8% of the (Caucasian) male population.
The accurate representation of data is essential. Many common color maps distort data through uneven colour gradients and are often unreadable to those with color-vision deficiency. An infamous example is the jet color map. These color maps do not render all the information you want to illustrate or even worse render false information through artefacts. Scientist or not, your goal is to communicate visual information in the most accurate and appealing fashion. Moreover, do not overlook colour-vision deficiency, which represents 8% of the (Caucasian) male population.

## Color spaces

Expand Down Expand Up @@ -353,6 +353,10 @@ sc.plot_colormap(ctype='qualitative',

# Changes log

### 0.2

- [Bug] Fix typo in chart titles

### 0.1

- First version
2 changes: 1 addition & 1 deletion scicomap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from . import cmath
from . import cblind

__version__ = "0.1"
__version__ = "0.2"
__all__ = ["scicomap", "datasets", "cmath", "cblind", "utils"]

# bound to upper level
Expand Down
10 changes: 5 additions & 5 deletions scicomap/cblind.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ def colorblind_vision(cmap, figsize=None, n_colors=10, facecolor="black"):
cmap_list, _ = _get_color_weak_cmap(color_map=cmap, n_images=0)
cmap_dic[cmap.name] = cmap_list

sub_titles = ["Normal\n~95% of pop"] + \
["Deuter-50%\nRG-weak, D/P: 5% of male"] + \
["Prot-50%\nRG-weak, D/P: 5% of male"] + \
["Deuter-100%\nRG-blind, D/P: 5% of male"] + \
["Trit-100%\nBY deficient, very rare"]
sub_titles = ["Normal\n~95$%$ of pop"] + \
["Deuter-50$%$\nRG-weak, D/P: 5$%$ of male"] + \
["Prot-50$%$\nRG-weak, D/P: 5$%$ of male"] + \
["Deuter-100$%$\nRG-blind, D/P: 5$%$ of male"] + \
["Trit-100$%$\nBY deficient, very rare"]

nrows = len(spectral_list)
ncols = len(cmap_dic)
Expand Down
6 changes: 3 additions & 3 deletions scicomap/scicomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class ScicoSequential(SciCoMap):
https://betterfigures.org/2015/06/23/picking-a-colour-scale-for-scientific-graphics/
"""

def __init__(self, cmap="chroma"):
def __init__(self, cmap="thermal"):
super().__init__(cmap=cmap, ctype="sequential")

def __repr__(self):
Expand Down Expand Up @@ -944,8 +944,8 @@ def get_cmap_dict():
"haline": cmocean.cm.haline,
"hawaii": scico.hawaii,
"hawaii_r": scico.hawaii,
"heat": cmr.heat,
"heat_r": cmr.heat_r,
"heat": cmr.torch,
"heat_r": cmr.torch_r,
"hot": plt.get_cmap("hot"),
"ice": cmocean.cm.ice,
"inferno": plt.get_cmap("inferno"),
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
"matplotlib >= 3.3.0",
]

KEYWORDS = "color, color map, scientific color maps, uniform, "
KEYWORDS = "color, color map, scientific color maps, uniform "

setup(
name="scicomap",
version="0.1",
version="0.2",
description="Scientific color maps",
long_description=README,
long_description_content_type="text/markdown",
#url="https://github.com/ThomasBury/geomapviz",
author="Thomas Bury",
author_email="[email protected]",
packages=find_packages(),
Expand Down

0 comments on commit 651fbf0

Please sign in to comment.