Recall & Review
beginner
What is a figure in data visualization?
A figure is the entire window or page that holds one or more plots or charts. Think of it as a blank canvas where you draw your graphs.
Click to reveal answer
beginner
What is an axes in a figure?
Axes are the parts of the figure where the actual data is plotted. It includes the x-axis, y-axis, and the area where the graph appears.
Click to reveal answer
beginner
How do you create a figure and axes using Matplotlib in Python?
Use the command
fig, ax = plt.subplots(). This creates a figure and a single axes inside it, ready for plotting.Click to reveal answer
intermediate
Why might you want to create multiple axes in one figure?
To show multiple plots side by side or in a grid, making it easier to compare data visually in one window.
Click to reveal answer
beginner
What does the
figsize parameter control when creating a figure?It sets the size of the figure in inches, controlling how big or small the whole plot area will be.
Click to reveal answer
Which command creates a figure and axes in Matplotlib?
✗ Incorrect
The correct command is
fig, ax = plt.subplots() which creates both figure and axes.What does an axes object represent?
✗ Incorrect
Axes is the area inside the figure where the data is drawn, including x and y axes.
How can you create multiple plots in one figure?
✗ Incorrect
Using
plt.subplots(nrows, ncols) creates multiple axes in one figure.What does the figsize parameter control?
✗ Incorrect
Figsize sets the width and height of the figure in inches.
If you want a single plot, which is the simplest way to create figure and axes?
✗ Incorrect
Using
plt.subplots() creates both figure and axes in one step.Explain the difference between a figure and axes in data visualization.
Think of a figure as a page and axes as the drawing area on that page.
You got /3 concepts.
Describe how to create multiple plots in one figure using Python's Matplotlib.
Consider how you might arrange photos in a photo album.
You got /3 concepts.