1 of 12

CSE 163

Data Visualization

Arpan Kapoor�Summer 2026��💭Icebreaker (discuss with neighbors):

How is your summer going so far?

Add to our Slido!

slido.com

#2348882

2 of 12

Announcements

  • Programming Practice 2 and Homework 2: Pokemon due this week (Thu/Fri.)
  • Programming Practice 3 and Homework 3: Education due next week (Thu./Fri.)
  • Final Project Part 1: Proposal due Sun. July 19th
    • Max group of 3
  • Make sure to run flake8 on programming practice and homework submission files before submitting!

slido.com

#2348882

3 of 12

Project Part 1

  • Original data analysis
  • Go beyond what you have shown in the homeworks
  • Groups of max 3 people
  • Proposal - what data are you using, what questions are you trying to answer, what are the motivations, and what is your plan?
  • Due Sunday, July 19th

slido.com

#2348882

4 of 12

Default Parameters

  • Python lets you define default values for parameters in case a client does not pass a value for that argument
  • This allows libraries such as pandas or seaborn to provide default parameters for their functions and initializer functions!

def greetings(to: str = 'world'):

return 'Hello ' + to + '!'

greetings('Sarah') # 'Hello Sarah!'

greetings(to='Antonio') # 'Hello Antonio!'

greetings() # 'Hello world!'

slido.com

#2348882

5 of 12

Python Data Visualization

  • Many libraries exists for Python that allow you to do graphing and data visualization
  • We will encourage seaborn since it is quickly becoming the standard for many data scientists
    • We will still rely on matplotlib for some things
    • You are welcome to use it in more depth on your project if you want to make more highly customized charts
  • Two of the most popular graphing libraries for Python are
    • matplotlib: extremely customizable
    • seaborn: great out-of-the-box visualizations

slido.com

#2348882

6 of 12

Encoding Effectiveness

[Mackinlay 86]

slido.com

#2348882

7 of 12

Color Encoding Example

slido.com

#2348882

8 of 12

Area Encoding Example

slido.com

#2348882

9 of 12

Readability is Important!

Did the number of deaths go up or down after the law was enacted?

This graphic was posted in an articly by Business Insider

(graphic made by Reuters)

slido.com

#2348882

10 of 12

How to Lie with Data Visualization

slido.com

#2348882

11 of 12

How to Lie with Data Visualization

slido.com

#2348882

12 of 12

Remember…

  • Just because seaborn or matplotlib allow you to do something with your visualizations doesn’t mean that’s the most effective way to to present results.
  • Be mindful of the ethical and conclusion implications that may come from presenting your data in a specific way.
  • Be mindful of the color, font, and font size you use in your graphics
    • Accessibility matters when it comes to graphics
    • Good starting point for accessible color palettes.
  • Data visualizations are meant to give us a relatively quick summary of your results. People should not be trying to decode what your visualization is saying.

slido.com

#2348882