Skip to Content
Doing Math with Python
book

Doing Math with Python

by Amit Saha
August 2015
Beginner
264 pages
5h 57m
English
No Starch Press
Content preview from Doing Math with Python

2Visualizing Data with Graphs

image

In this chapter, you’ll learn a powerful way to present numerical data: by drawing graphs with Python. We’ll start by discussing the number line and the Cartesian plane. Next, we’ll learn about the powerful plotting library matplotlib and how we can use it to create graphs. We’ll then explore how to make graphs that present data clearly and intuitively. Finally, we’ll use graphs to explore Newton’s law of universal gravitation and projectile motion. Let’s get started!

Understanding the Cartesian Coordinate Plane

Consider a number line, like the one shown in Figure 2-1. Integers from –3 to 3 are marked on the line, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Master Math by Coding in Python

Master Math by Coding in Python

Codestars By Rob Percival, Mike X Cohen
Python Workout

Python Workout

Reuven M. Lerner

Publisher Resources

ISBN: 9781457189999Errata Page