matplotlib Flashcards
1
Q
Import the pyplot module
A
import matplotlib.pyplot as plt
2
Q
Allow plots to display in Jupyter Notebook cell
A
%matplotlib inline
3
Q
Plot and display the visual
A
plt. plot()
plt. show()
4
Q
Create a figure sized 12 wide and 5 high containing 2 rows and 3 columns of subplots
A
fig, axs = plt.subplots(2, 3, figsize=(12, 5) )
5
Q
Create a line chart
A
ax.plot(x, y)