Search⌘ K
AI Features

Getting Set Up with Matplotlib

Explore how to set up Matplotlib and NumPy to graph dynamic pressure in a rocket launch scenario. This lesson guides you through generating time increments, calculating necessary physics values, and plotting results effectively using Python.

We'll cover the following...

Here are the two libraries that you will be using:

import matplotlib.pyplot as plt
import numpy as np

Numpy will be used below to generate ranges of values for this tutorial in 0.5-second increments and perform exponential calculations. The built-in range() function used in FizzBuzz could very easily be used in Numpy’s place to generate a range of numbers. The built-in ...