Good Scientific Visualization Practices + Python

Similar documents
Choosing Colors for Data Visualization Maureen Stone January 17, 2006

Expert Color Choices for Presenting Data

Information visualization examples

Data Visualization. Introductions

Escaping RGBland: Selecting Colors for Statistical Graphics

Common Mistakes in Data Presentation Stephen Few September 4, 2004

Visualizing Historical Agricultural Data: The Current State of the Art Irwin Anolik (USDA National Agricultural Statistics Service)

Principles of Data Visualization

Data Visualization. Scientific Principles, Design Choices and Implementation in LabKey. Cory Nathe Software Engineer, LabKey

GRAPHING DATA FOR DECISION-MAKING

Part 2: Data Visualization How to communicate complex ideas with simple, efficient and accurate data graphics

CS171 Visualization. The Visualization Alphabet: Marks and Channels. Alexander Lex [xkcd]

Data Visualization Best Practice. Sophie Sparkes Data Analyst

Best Practices for Dashboard Design with SAP BusinessObjects Design Studio

R Graphics Cookbook. Chang O'REILLY. Winston. Tokyo. Beijing Cambridge. Farnham Koln Sebastopol

Examples of Data Representation using Tables, Graphs and Charts

Numbers as pictures: Examples of data visualization from the Business Employment Dynamics program. October 2009

Visibility optimization for data visualization: A Survey of Issues and Techniques

Data Visualization & Dashboard Design Best Practices and Tips

Based on Chapter 11, Excel 2007 Dashboards & Reports (Alexander) and Create Dynamic Charts in Microsoft Office Excel 2007 and Beyond (Scheck)

Get The Picture: Visualizing Financial Data part 1

Quantitative vs. Categorical Data: A Difference Worth Knowing Stephen Few April 2005

Stephen Few, Perceptual Edge Visual Business Intelligence Newsletter November/December 2008

Visualization Software

Visualization. For Novices. ( Ted Hall ) University of Michigan 3D Lab Digital Media Commons, Library

Diagrams and Graphs of Statistical Data

CSU, Fresno - Institutional Research, Assessment and Planning - Dmitri Rogulkin

Utilizing spatial information systems for non-spatial-data analysis

Data Analysis & Visualization for Security Professionals

Principles of Data Visualization for Exploratory Data Analysis. Renee M. P. Teate. SYS 6023 Cognitive Systems Engineering April 28, 2015

Lecture 2: Descriptive Statistics and Exploratory Data Analysis

DATA VISUALIZATION 101: HOW TO DESIGN CHARTS AND GRAPHS

Visualization Quick Guide

Chapter 6: Constructing and Interpreting Graphic Displays of Behavioral Data

Visualizing Multidimensional Data Through Time Stephen Few July 2005

UNDERSTANDING HUMAN FACTORS OF BIG DATA VISUALIZATION

Choosing a successful structure for your visualization

Unresolved issues with the course, grades, or instructor, should be taken to the point of contact.

Best Practices in Data Visualizations. Vihao Pham 2014

Best Practices in Data Visualizations. Vihao Pham January 29, 2014

Today's Topics. COMP 388/441: Human-Computer Interaction. simple 2D plotting. 1D techniques. Ancient plotting techniques. Data Visualization:

Overview. Raster Graphics and Color. Overview. Display Hardware. Liquid Crystal Display (LCD) Cathode Ray Tube (CRT)

Why Taking This Course? Course Introduction, Descriptive Statistics and Data Visualization. Learning Goals. GENOME 560, Spring 2012

What is Visualization? Information Visualization An Overview. Information Visualization. Definitions

Quantitative Displays for Combining Time-Series and Part-to-Whole Relationships

Dashboard Design for Rich and Rapid Monitoring

All Visualizations Documentation

A Short Introduction on Data Visualization. Guoning Chen

This file contains 2 years of our interlibrary loan transactions downloaded from ILLiad. 70,000+ rows, multiple fields = an ideal file for pivot

TEXT-FILLED STACKED AREA GRAPHS Martin Kraus

Iris Sample Data Set. Basic Visualization Techniques: Charts, Graphs and Maps. Summary Statistics. Frequency and Mode

Variable: characteristic that varies from one individual to another in the population

Sometimes We Must Raise Our Voices

Get to the Point HOW GOOD DATA VISUALIZATION IMPROVES BUSINESS DECISIONS

an introduction to VISUALIZING DATA by joel laumans

Good Graphs: Graphical Perception and Data Visualization

Data Visualization Handbook

Data Visualization Style Guidelines

Effectively Communicating Numbers

MetroBoston DataCommon Training

Designing science graphs for data analysis and presentation

Information Literacy Program

Introduction to MATLAB (Basics) Reference from: Azernikov Sergei

A Short Introduction Prepared by Mirya Holman

The basics of storytelling through numbers

Problems With Using Microsoft Excel for Statistics

Design and Deployment of Specialized Visualizations for Weather-Sensitive Electric Distribution Operations

MARS STUDENT IMAGING PROJECT

OBI 11g Data Visualization Best Practices

TOP-DOWN DATA ANALYSIS WITH TREEMAPS

Charting Your Course: Charts and Graphs for IT Projects

On History of Information Visualization

Extensible Visualizations. Product: IBM Cognos Business Intelligence Area of Interest: Reporting

Orford, S., Dorling, D. and Harris, R. (2003) Cartography and Visualization in Rogers, A. and Viles, H.A. (eds), The Student s Companion to

Perception of Light and Color

Survey Data Analysis. Qatar University. Dr. Kenneth M.Coleman - University of Michigan

Data Visualization. BUS 230: Business and Economic Research and Communication

INF2793 Research Design & Academic Writing Prof. Simone D.J. Barbosa simone@inf.puc-rio.br sala 410 RDC. presentation

Multivariate data visualization using shadow

A Tutorial on Color Symbolization and Data Classification for Mapping and Visualization

Tutorial 3: Graphics and Exploratory Data Analysis in R Jason Pienaar and Tom Miller

Introduction to Geographical Data Visualization

Chapter 4 Creating Charts and Graphs

Bernice E. Rogowitz and Holly E. Rushmeier IBM TJ Watson Research Center, P.O. Box 704, Yorktown Heights, NY USA

Transcription:

Good Scientific Visualization Practices + Python Kristen Thyng Python in Geosciences September 19, 2013 Kristen Thyng (Texas A&M) Visualization September 19, 2013 1 / 29

Outline Overview of Bad Plotting 1 Overview of Bad Plotting 2 Perceptually-based colormaps 3 Matplotlib Tools 4 Miscellaneous Considerations Kristen Thyng (Texas A&M) Visualization September 19, 2013 2 / 29

Overview of Bad Plotting There are lots of bad plots out there Using 3D when unnecessary http://www.engadget.com/2008/01/15/live-from-macworld-2008-steve-jobs-keynote/ Kristen Thyng (Texas A&M) Visualization September 19, 2013 3 / 29

Overview of Bad Plotting There are lots of bad plots out there What is the dominant feature of this plot? http://www-personal.umich.edu/ jpboyd/sciviz 1 graphbadly.pdf Kristen Thyng (Texas A&M) Visualization September 19, 2013 3 / 29

Overview of Bad Plotting There are lots of bad plots out there Inconsistent representations http://www-personal.umich.edu/ jpboyd/sciviz 1 graphbadly.pdf Kristen Thyng (Texas A&M) Visualization September 19, 2013 3 / 29

Overview of Bad Plotting There are lots of bad plots out there Unintuitive representation http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 3 / 29

Overview of Bad Plotting There are lots of bad plots out there Chart junk http://en.wikipedia.org/wiki/file:chartjunk-example.svg, Tufte, Edward R. (1983). The Visual Display of Quantitative Information. Cheshire, CT: Graphics Press. Kristen Thyng (Texas A&M) Visualization September 19, 2013 3 / 29

Goals in Visualization Overview of Bad Plotting Honestly present the information - no cheating! Clear presentation - nothing unnecessary Label axes, units, etc, with large lettering Intuitive, consistent markers/coloring Give context Kristen Thyng (Texas A&M) Visualization September 19, 2013 4 / 29

Better plots Overview of Bad Plotting Using 3D when unnecessary http://www.engadget.com/2008/01/15/live-from-macworld-2008-steve-jobs-keynote/ Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Better presentation, though pie charts not great http://www.quora.com/data-visualization/what-should-everyone-know-about-making-good-charts-and-graphs-to-representdata Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting What is the dominant feature of this plot? http://www-personal.umich.edu/ jpboyd/sciviz 1 graphbadly.pdf Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Simpler is often better http://www-personal.umich.edu/ jpboyd/sciviz 1 graphbadly.pdf Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Pick a representation and stick with it http://www-personal.umich.edu/ jpboyd/sciviz 1 graphbadly.pdf Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Unintuitive representation http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Color choices are key http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Color choices are key http://www.sv.vt.edu/ rkriz/projects/create color table/color 07.pdf Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Better plots Overview of Bad Plotting Chart junk http://en.wikipedia.org/wiki/file:chartjunk-example.svg, Tufte, Edward R. (1983). The Visual Display of Quantitative Information. Cheshire, CT: Graphics Press. Kristen Thyng (Texas A&M) Visualization September 19, 2013 5 / 29

Outline Perceptually-based colormaps 1 Overview of Bad Plotting 2 Perceptually-based colormaps 3 Matplotlib Tools 4 Miscellaneous Considerations Kristen Thyng (Texas A&M) Visualization September 19, 2013 6 / 29

Perceptually-based colormaps Data Types Categorical: Representing discrete things, not on continuum Interval or sequential: intervals of the data are equal distances Ratio or diverging: has critical value (often 0) and ratios of values are equal http://www.research.ibm.com/people/l/lloydt/color/color.htm http://stackoverflow.com/questions/7150453/order-categorical-data-in-astacked-bar-plot-with-ggplot2 Kristen Thyng (Texas A&M) Visualization September 19, 2013 7 / 29

Perceptually-based colormaps Data Types Categorical: Representing discrete things, not on continuum Interval or sequential: intervals of the data are equal distances Ratio or diverging: has critical value (often 0) and ratios of values are equal http://www.research.ibm.com/people/l/lloydt/color/color.htm http://stackoverflow.com/questions/7150453/order-categorical-data-in-astacked-bar-plot-with-ggplot2 Kristen Thyng (Texas A&M) Visualization September 19, 2013 7 / 29

Perceptually-based colormaps Data Types Categorical: Representing discrete things, not on continuum Interval or sequential: intervals of the data are equal distances Ratio or diverging: has critical value (often 0) and ratios of values are equal http://www.research.ibm.com/people/l/lloydt/color/color.htm http://www.gnuplotting.org/tag/colormap/ Kristen Thyng (Texas A&M) Visualization September 19, 2013 7 / 29

Perceptually-based colormaps Data Types Categorical: Representing discrete things, not on continuum Interval or sequential: intervals of the data are equal distances Ratio or diverging: has critical value (often 0) and ratios of values are equal http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 7 / 29

Perceptually-based colormaps Data Types Categorical: Representing discrete things, not on continuum Interval or sequential: intervals of the data are equal distances Ratio or diverging: has critical value (often 0) and ratios of values are equal http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 7 / 29

Perceptually-based colormaps Data Types Categorical: Representing discrete things, not on continuum Interval or sequential: intervals of the data are equal distances Ratio or diverging: has critical value (often 0) and ratios of values are equal Equal steps in data should correspond to equal steps in perception http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 7 / 29

Color is 3D Perceptually-based colormaps r: saturation/color intensity, z: luminance/brightness, θ: color hue http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 8 / 29

Color is 3D Perceptually-based colormaps r: saturation/color intensity, z: luminance/brightness, θ: color hue good for representing continuous variations in data magnitude http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 8 / 29

Jet Luminance Perceptually-based colormaps http://www.mathworks.com/matlabcentral/fx files/28982/16/spectrum vs cubicyf.png Kristen Thyng (Texas A&M) Visualization September 19, 2013 9 / 29

Perceptually-based colormaps Hue-based Colormaps Perceptually Distort Information http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 10 / 29

Perceptually-based colormaps Luminance and Saturation Colormaps http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 11 / 29

Perceptually-based colormaps Improved Colormapping http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 12 / 29

Outline Matplotlib Tools 1 Overview of Bad Plotting 2 Perceptually-based colormaps 3 Matplotlib Tools 4 Miscellaneous Considerations Kristen Thyng (Texas A&M) Visualization September 19, 2013 13 / 29

Types of Colormaps Matplotlib Tools Kristen Thyng (Texas A&M) Visualization September 19, 2013 14 / 29

Types of Colormaps Matplotlib Tools http://matplotlib.org/examples/color/colormaps reference.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 14 / 29

Types of Colormaps Matplotlib Tools http://matplotlib.org/examples/color/colormaps reference.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 14 / 29

Types of Colormaps Matplotlib Tools http://matplotlib.org/examples/color/colormaps reference.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 14 / 29

Types of Colormaps Matplotlib Tools http://matplotlib.org/examples/color/colormaps reference.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 14 / 29

Subplot Matplotlib Tools http://matplotlib.org/examples/subplots axes and figures/subplot demo.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 15 / 29

Axes Grid Toolbox Matplotlib Tools Kristen Thyng (Texas A&M) Visualization September 19, 2013 16 / 29

Inset Axes Matplotlib Tools Kristen Thyng (Texas A&M) Visualization September 19, 2013 17 / 29

Overlaid Axes Matplotlib Tools Kristen Thyng (Texas A&M) Visualization September 19, 2013 18 / 29

Matplotlib Tools Overlaid Axes: Colorbar Placement Kristen Thyng (Texas A&M) Visualization September 19, 2013 19 / 29

Outline Miscellaneous Considerations 1 Overview of Bad Plotting 2 Perceptually-based colormaps 3 Matplotlib Tools 4 Miscellaneous Considerations Kristen Thyng (Texas A&M) Visualization September 19, 2013 20 / 29

Miscellaneous Considerations Use Colormaps for Different Purposes http://www.research.ibm.com/people/l/lloydt/color/color.htm Kristen Thyng (Texas A&M) Visualization September 19, 2013 21 / 29

Cube Helix Miscellaneous Considerations Proper intensity scaling, though do consider application http://www.mrao.cam.ac.uk/ dag/cubehelix/ Kristen Thyng (Texas A&M) Visualization September 19, 2013 22 / 29

Give Context Miscellaneous Considerations Kristen Thyng (Texas A&M) Visualization September 19, 2013 23 / 29

Be Consistent Miscellaneous Considerations Kristen Thyng (Texas A&M) Visualization September 19, 2013 24 / 29

Miscellaneous Considerations Discrete vs. Continuous Colorbar http://figuredesign.blogspot.com/2012/04/meeting-recap-colors-in-figures.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 25 / 29

Miscellaneous Considerations Diverging Colormap: Critical value treatment http://figuredesign.blogspot.com/2012/04/meeting-recap-colors-in-figures.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 26 / 29

Miscellaneous Considerations Printing in Black and White from Color Change the design choices altogether, or be sure the colors will print to different grayscale values http://figuredesign.blogspot.com/2012/04/meeting-recap-colors-in-figures.html Kristen Thyng (Texas A&M) Visualization September 19, 2013 27 / 29

Color Blindness Miscellaneous Considerations Problems distinguishing green-yellow-red, and rarely blue-yellow http://www.etre.com/tools/colourblindsimulator/ Kristen Thyng (Texas A&M) Visualization September 19, 2013 28 / 29

Resources Miscellaneous Considerations Edward Tufte s books IBM articles: http://www.research.ibm.com/people/l/lloydt/color/color.htm Color Brewer: Color advice for maps: http://colorbrewer2.org IEEE Computer Society article: http://www.sv.vt.edu/ rkriz/projects/create color table/color 07.pdf MatLab colormap function, with lots of references: http://www.mathworks.com/matlabcentral/fileexchange/28982- perceptually-improved-colormaps/content/pmkmp.m Cube Helix colormap: http://www.mrao.cam.ac.uk/ dag/cubehelix/+ Test plots for sensitivity to color blindness: http://www.etre.com/tools/colourblindsimulator/ Matplotlib example gallery: http://matplotlib.org/gallery.html Useful design blog: http://figuredesign.blogspot.com Figures writeup: Kristen Thyng (Texas A&M) Visualization September 19, 2013 29 / 29