Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 ·...
Transcript of Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 ·...
![Page 1: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/1.jpg)
http://www.cs.ubc.ca/~tmm/courses/547-17
Ch 10: Color
Tamara Munzner Department of Computer ScienceUniversity of British Columbia
CPSC 547, Information VisualizationDay 11: 7 Feb 2017
![Page 2: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/2.jpg)
Idiom design choices: Encode
2
Why?
How?
What?
Encode
ArrangeExpress Separate
Order Align
Use
Map
Color
Motion
Size, Angle, Curvature, ...
Hue Saturation Luminance
Shape
Direction, Rate, Frequency, ...
from categorical and ordered attributes
![Page 3: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/3.jpg)
Challenges of Color
• what is wrong with this picture?
3http://viz.wtf/post/150780948819/maths-enrolments-drop-to-lowest-rate-in-50-years
@WTFViz“visualizations that make no sense”
![Page 4: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/4.jpg)
Categorical vs ordered color
4
[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
![Page 5: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/5.jpg)
Decomposing color
• first rule of color: do not talk about color!– color is confusing if treated as monolithic
• decompose into three channels– ordered can show magnitude
• luminance• saturation
– categorical can show identity• hue
• channels have different properties– what they convey directly to perceptual system– how much they can convey: how many discriminable bins can we use? 5
Saturation
Luminance values
Hue
![Page 6: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/6.jpg)
Color spaces
• RGB: poor for encoding
• HSL: better, but beware–lightness ≠ luminance
6
Corners of the RGB color cube
L from HLSAll the same
Luminance values
![Page 7: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/7.jpg)
Spectral sensitivity
7
Wavelength (nm)
IRUV
Visible Spectrum
![Page 8: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/8.jpg)
Opponent color and color deficiency
• perceptual processing before optic nerve– one achromatic luminance channel L
–intrinsic perceptual ordering–need luminance contrast for edge detection
– two chroma channels, R-G and Y-B axis
• “color blind” if one chroma axis has degraded acuity– 8% of men are red/green color deficient– blue/yellow is rare
8
Lightness information Color information
[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
![Page 9: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/9.jpg)
Designing for color deficiency: Check with simulator
9
Deuteranope Protanope TritanopeNormal vision
[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
http://rehue.net
![Page 10: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/10.jpg)
Designing for color deficiency: Avoid encoding by hue alone
• redundantly encode– vary luminance– change shape
10
Change the shape
Vary luminance
Deuteranope simulation
[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
![Page 11: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/11.jpg)
Color deficiency: Reduces color to 2 dimensions
11
Normal
Deuteranope Tritanope
Protanope
[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
![Page 12: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/12.jpg)
Designing for color deficiency: Blue-Orange is safe
12[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
![Page 13: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/13.jpg)
Bezold Effect: Outlines matter
• color constancy: simultaneous contrast effect
13[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]
![Page 14: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/14.jpg)
Color/Lightness constancy: Illumination conditions
14
Image courtesy of John McCann
![Page 15: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/15.jpg)
Color/Lightness constancy: Illumination conditions
15
Image courtesy of John McCann
![Page 16: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/16.jpg)
Colormaps
16
after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]
Categorical
OrderedSequential
Bivariate
Diverging
Binary
Diverging
Categorical
Sequential
Categorical
Categorical
![Page 17: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/17.jpg)
Colormaps
17
after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]
Categorical
OrderedSequential
Bivariate
Diverging
Binary
Diverging
Categorical
Sequential
Categorical
Categorical
![Page 18: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/18.jpg)
Colormaps
18
after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]
Categorical
OrderedSequential
Bivariate
Diverging
Binary
Diverging
Categorical
Sequential
Categorical
Categorical
use with care!
![Page 19: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/19.jpg)
Colormaps
19
• color channel interactions–size heavily affects salience
• small regions need high saturation• large need low saturation
–saturation & luminance: 3-4 bins max• also not separable from transparency
after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]
Categorical
OrderedSequential
Bivariate
Diverging
Binary
Diverging
Categorical
Sequential
Categorical
Categorical
![Page 20: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/20.jpg)
Categorical color: limited number of discriminable bins
• human perception built on relative comparisons–great if color contiguous–surprisingly bad for
absolute comparisons
• noncontiguous small regions of color–fewer bins than you want–rule of thumb: 6-12 bins,
including background and highlights
–so what can we do instead? 20
[Cinteny: flexible analysis and visualization of synteny and genome rearrangements in multiple organisms. Sinha and Meller. BMC Bioinformatics, 8:82, 2007.]
![Page 21: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/21.jpg)
ColorBrewer
• http://www.colorbrewer2.org• saturation and area example: size affects salience!
21
![Page 22: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/22.jpg)
Ordered color: Rainbow is poor default• problems
–perceptually unordered–perceptually nonlinear
• benefits–fine-grained structure visible
and nameable
22[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]
[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]
[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]
![Page 23: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/23.jpg)
Ordered color: Rainbow is poor default• problems
–perceptually unordered–perceptually nonlinear
• benefits–fine-grained structure visible
and nameable
• alternatives– large-scale structure: fewer
hues
23[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]
[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]
[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]
![Page 24: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/24.jpg)
Ordered color: Rainbow is poor default• problems
–perceptually unordered–perceptually nonlinear
• benefits–fine-grained structure visible
and nameable
• alternatives– large-scale structure: fewer
hues–fine structure: multiple hues
with monotonically increasing luminance [eg viridis R/python]
24[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]
[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]
[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]
![Page 25: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/25.jpg)
Ordered color: Rainbow is poor default• problems
–perceptually unordered–perceptually nonlinear
• benefits–fine-grained structure visible and
nameable
• alternatives– large-scale structure: fewer hues–fine structure: multiple hues with
monotonically increasing luminance [eg viridis R/python]
–segmented rainbows for binned• or categorical
25[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]
[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]
[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]
![Page 26: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/26.jpg)
Viridis• colorful, perceptually uniform,
colorblind-safe, monotonically increasing luminance
26
https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html
![Page 27: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/27.jpg)
27
Map other channels
• size–length accurate, 2D area ok, 3D volume poor
• angle–nonlinear accuracy
• horizontal, vertical, exact diagonal
• shape–complex combination of lower-level primitives–many bins
• motion–highly separable against static
• binary: great for highlighting
–use with care to avoid irritationMotionDirection, Rate, Frequency, ...
Length
Angle
Curvature
Area
Volume
Size, Angle, Curvature, ...
Shape
Motion
![Page 28: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/28.jpg)
Angle
28
Sequential ordered line mark or arrow glyph
Diverging ordered arrow glyph
Cyclic ordered arrow glyph
![Page 29: Ch 10: Color - Home | Computer Science at UBCtmm/courses/547-17/slides/color.pdf · 2017-02-07 · Ch 10: Color Tamara Munzner Department of Computer Science University of British](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa30d0699db7f3b320829c8/html5/thumbnails/29.jpg)
Next Time
• to read–VAD Ch. 11: Manipulate View–Interactive Visualization of Genealogical Graphs. Michael J. McGuffin, Ravin
Balakrishnan. Proc. InfoVis 2005, pp 17-24.
29