Effective Plotting

Scatter and Line Plots

Brett Andrews

10.30.2018

Don't make me think!

Take advantage of human perception.

Color better than shape.

Kieran Healy, "Data Vizualization: a Practical Introduction."

Which colors play nicely together?

Demiralp et al. (2014), "Learning Perceptual Kernels for Vizualization Design."

Which shapes play nicely together?

Demiralp et al. (2014), "Learning Perceptual Kernels for Vizualization Design."

Distinguishability falls off a cliff unless data is highly structured.

Kieran Healy, "Data Vizualization: a Practical Introduction."

  1. Proximity: Things that are spatially near to one another seem to be related.
  2. Similarity: Things that look alike seem to be related.
  3. Connection: Things that are visually tied to one another seem to be related.
  4. Continuity: Partially hidden objects are completed into familiar shapes.
  5. Closure: Incomplete shapes are perceived as complete.
  6. Figure and Ground: Visual elements are taken to be either in the foreground or the background.
  7. Common Fate: Elements sharing a direction of movement are perceived as a unit.

Kieran Healy, "Data Vizualization: a Practical Introduction."

Don't need to show all data in one panel.

Kieran Healy, "Data Vizualization: a Practical Introduction."

Multiple panels add structure.

Kieran Healy, "Data Vizualization: a Practical Introduction."

Annotate outliers.

Kieran Healy, "Data Vizualization: a Practical Introduction."

Alpha for overlapping points.

Kieran Healy, "Data Vizualization: a Practical Introduction."

Basic Legend.

Matt Hall

More intuitive.

Matt Hall

Black and white option.

Matt Hall

Don't use jet.

Jake VanderPlas

Sequential Colormaps

Matplotlib docs

Diverging Colormaps

Matplotlib docs

Qualitative Colormaps

Matplotlib docs

Cyclic Colormaps

New in Matplotlib 3!

Colormaps in the wild.

Marvin

Don't make me think!

Take advantage of human perception.