Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind Matplotlib Pyplot?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___ matplotlib.pyplot as plt3Order
Put the learning moves in the order that makes the concept easiest to apply.
You will learn more about drawing (plotting) in the next chapters.
Now the Pyplot package can be referred to as plt .
Most of the Matplotlib utilities lies under the pyplot submodule, and are usually imported under the plt alias:
Pyplot
Most of the Matplotlib utilities lies under the pyplot submodule, and are usually imported under the plt alias:
import matplotlib.pyplot as pltNow the Pyplot package can be referred to as plt .
Example
import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([0, 6])
ypoints = np.array([0, 250])
plt.plot(xpoints,
ypoints)
plt.show()You will learn more about drawing (plotting) in the next chapters.