42
1 Color Maneesh Agrawala CS 448B: Visualization Fall 2017 Last Time: Deconstructing Visualizations

Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

1

Color

Maneesh Agrawala

CS 448B: VisualizationFall 2017

Last Time: Deconstructing Visualizations

Page 2: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

2

Disease BudgetAids 70.0%Alzheimer’s 5.0%Cardiovascular 1.1%Diabetes 4.8%Hepatitus B 4.1%Hepatitus C 3.8%Parkinson’ 6.0%Prostate 5.2%

Budget à angle (Q)Disease à color (N)

mark: areas

Dat

a

Mar

ks

Map

ping

s

Budget à length (Q)Disease à color (N)

mark: linesDisease BudgetAids 70.0%Alzheimer’s 5.0%Cardiovascular 1.1%Diabetes 4.8%Hepatitus B 4.1%Hepatitus C 3.8%Parkinson’ 6.0%Prostate 5.2%

Dat

a

Mar

ks

Map

ping

s

Page 3: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

3

Taxonomy

Skepticism for capitalism is lowest in Brazil (22%), China (19%), Germany (29%) (although East Germans are less supportive than West Germans) and the U.S. (24%). Skepticism for free markets is highest in Mexico (60%) and Japan (60%).

Example 1: Pew Research

Page 4: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

4

Skepticism for capitalism is lowest in Brazil (22%), China (19%), Germany (29%) (although East Germans are less supportive than West Germans) and the U.S. (24%). Skepticism for free markets is highest in Mexico (60%) and Japan (60%).

Example 1: Pew Research

Announcements

Page 5: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

5

Final projectNew visualization research or data analysis

■ Pose problem, Implement creative solution■ Design studies/evaluations

Deliverables■ Implementation of solution■ 6-8 page paper in format of conference paper submission■ Project progress presentations

Schedule■ Project proposal: Mon 11/5■ Project progress presentation: 11/12 and 11/14 in class (3-4 min)■ Final poster presentation: 12/5 Location: Lathrop 282■ Final paper: 12/9 11:59pm

Grading■ Groups of up to 3 people, graded individually■ Clearly report responsibilities of each member

Color

Page 6: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

6

Color in VisualizationIdentify, Group, Layer, Highlight

Colin Ware

Purpose of ColorTo labelTo measureTo represent and imitateTo enliven and decorate

“Above all, do no harm.”- Edward Tufte

Page 7: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

7

TopicsColor PerceptionColor NamingUsing Color in Visualization

Color PerceptionPhysical World, Visual System, Mental Models

Page 8: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

8

Physical WorldLight is radiation in range of wavelengths

Light of single wavelength is monochromatic

Retina

Simple Anatomy of the Retina, Helga Kolb

Page 9: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

9

Cone Response Integrate cone response with input

spectra

Integrate cone response with input spectra

Computing Cone Response

Page 10: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

10

Opponent processingLMS are linearly combined to create:

LightnessRed-green contrastYellow-blue contrast

A R-G Y-B

+++ +++ +

- -

Fairchild

L M S

Opponent processingLMS are combined to create:

LightnessRed-green contrastYellow-blue contrast

Experiments:No reddish green, no bluish yellowColor after images

Page 11: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

11

Page 12: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

12

CIE LUV and LAB color spacesStandardized in 1976 to mathematically

represent opponent processing theory

CIELABCIELUV

Axes of CIE LABCorrespond to opponent signalsL* = Luminance a* = Red-green contrastb* = Yellow-blue contrast

Scaling of axes to represent “color distance”JND = Just noticeable difference (~2.3 units)

Page 13: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

13

Pseudo-Perceptual Color Spaces

Lightness

Hue

Colorfulness

Unique black and whiteUniform differences

Perception & design

Hue, Value, Chroma

Page 14: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

14

Psuedo-Perceptual ModelsHLS, HSV, HSBNOT perceptual modelsSimple re-notation of RGB

■ View along gray axis■ See a hue hexagon■ L or V is grayscale pixel value

Cannot predict perceived lightness

Perceptual brightness

Color palette

HSL Lightness(Photoshop)

Page 15: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

15

Perceptual brightness

Color palette

Munsell ValueL* (CIE LAB)

Simultaneous ContrastThe inner and outer thin rings are the

physical purple

Donald MacLeod

Page 16: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

16

Simultaneous Contrast

Josef Albers

Simultaneous Contrast

Josef Albers

Page 17: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

17

Color Appearance More than a single color

■ Adjacent colors (background)■ Viewing environment (surround)

Appearance effects■ Adaptation■ Simultaneous contrast■ Spatial effects

Color in context

Color Appearance ModelsMark Fairchild

surround

background

stimulus

Bezold Effect

Page 18: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

18

Crispening

Perceived difference depends on background

From Fairchild, Color Appearance Models

Spreading

Adjacent colors blend

Spatial frequency■ The paint chip problem■ Small text, lines, glyphs■ Image colors

Redrawn from Foundations of Vision© Brian Wandell, Stanford University

Page 19: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

19

Color Naming

What color is this?

Page 20: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

20

What color is this?

“Yellow”

What color is this?

Page 21: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

21

What color is this?

“Blue”

What color is this?

Page 22: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

22

What color is this?

“Teal” ?

Colors according to XKCD…

Page 23: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

23

Basic color termsChance discovery by Brent Berlin and Paul Kay

Basic color termsChance discovery by Brent Berlin and Paul Kay

Page 24: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

24

Basic Color TermsChance discovery by Brent Berlin and Paul Kay

Initial study in 1969Surveyed speakers from 20 languagesLiterature from 69 languages

World color survey

Page 25: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

25

World color survey

World color survey

Naming information from 2616 speakers from 110 languages on 330 Munsell color chips

Page 26: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

26

Results from WCS (Mexico)

Results from WCS (South Pacific)

Page 27: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

27

Universal (?) Basic Color TermsBasic color terms recur across languages

White

Grey

Black

Red

Yellow

Green

Blue

Pink

Orange

Brown

Purple

Evolution of Basic Color TermsProposed universal evolution across

languages

Page 28: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

28

Rainbow color rampWe associate and group colors together,

often using the name we assign to the colors

Rainbow color rampWe associate and group colors together,

often using the name we assign to the colors

Page 29: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

29

Rainbow color rampWe associate and group colors together,

often using the name we assign to the colors

Naming affects color perceptionColor name boundaries

Green Blue

Page 30: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

30

Color naming models

Model 3 million responses from XKCD survey

Bins in LAB spacesized by saliency:How much do peopleagree on color name?

Modeled by entropyof p(name | color)

[Heer & Stone]

Blue / greenconfusion

Orange / redboundary

Icicle tree with colors

Naming confusion conflicts with tree structure!

Page 31: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

31

Using Color in Visualization

Gray�s Anatomy

Superficial dissection of the right side of the neck, showing the carotid and subclavian arteries

http://www.bartleby.com/107/illus520.html

Page 32: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

32

Molecular Models

Organic Chemistry Molecular Model Sethttp://www.indigo.com/models/gphmodel/62003.html

Product Categories

Created by Tableau - Visual Analysis for DatabasesTM

Page 33: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

33

Grouping, Highlighting

Palette Design + Color NamesMinimize overlap and ambiguity of color names

http://vis.stanford.edu/color-names

Page 34: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

34

Palette Design + Color NamesMinimize overlap and ambiguity of color names

http://vis.stanford.edu/color-names

Mapping Data to Color (Rainbows)

Page 35: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

35

Avoid rainbow color maps!

1. People segment colors into classes2. Hues are not naturally ordered3. Different lightness emphasizes certain scalar values4. Low luminance colors (blue) hide high frequencies

Rainbow vs. Diverging Color Scale

[Borkin 11]

Page 36: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

36

Rainbow vs. Diverging Color Scale

[Borkin 11]

Phase Diagrams (hue scale)

The optical singularities of bianisotropic crystals, by M. V. Berry

Singularities occur where all colors meet

Page 37: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

37

Phases of the Tides

Figure 1.9. Cotidal chart. Tide phases relative to Greenwich are plotted for all the world�s oceans. Phase progresses from red to orange to yellow to green to blue to purple. The lines converge on anphidromic points, singularities on the earth�s surface where there is no defined tide. [Winfree, 1987 #1195 , p. 17].

Quantitative color encodingSequential color scale

Constrain hue, vary luminance/saturationMap higher values to darker colors

Diverging color scaleUseful when data has a meaningful “midpoint”Use neutral color (e.g., grey) for midpointUse saturated colors for endpoints

Limit number of steps in color to 3-9

Page 38: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

38

www.colorbrewer.org

Color Brewer

Sequential color scheme

Page 39: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

39

Sequential color scheme

Design of sequential color scalesHue-Lightness (Recommended)Higher values mapped to darker colorsColorBrewer schemes have 3-9 steps

Hue TransitionTwo huesNeighboring hues interpolate betterCouple with change in lightness

Page 40: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

40

Diverging color scheme

Diverging color scheme

Page 41: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

41

Diverging color schemeHue TransitionCarefully handle midpoint

■ Critical class– Low, Average, High– ‘Average’ should be gray

■ Critical breakpoint– Defining value e.g. 0– Positive & negative should use different hues

Extremes saturated, middle desaturated

Page 42: Color - GitHub Pages · Project progress presentation: 11/12 and 11/14 in class (3-4 min) ... Josef Albers Simultaneous Contrast Josef Albers. 17 Color Appearance More than a single

42

Classing quantitative data

Age-adjusted mortality rates for the United States

Hints for the coloristUse only a few colors (~6 ideal)Colors should be distinctive and namableGet it right in black and whiteRespect the color blind