Recall & Review
beginner
What does changing the marker size in a matplotlib scatter plot do?
Changing the marker size makes the points on the plot bigger or smaller, helping to show differences or importance visually.
Click to reveal answer
beginner
How do you set a fixed marker size in matplotlib's scatter plot?
Use the 's' parameter in plt.scatter(), like plt.scatter(x, y, s=50), where 50 is the size of each marker.
Click to reveal answer
intermediate
Can marker sizes vary for each point in a scatter plot? How?
Yes, by passing a list or array of sizes to the 's' parameter, each point can have a different size.
Click to reveal answer
intermediate
What unit is used for marker size in matplotlib scatter plots?
Marker size is in points squared (pt²), so size 100 means the marker area is 100 points squared.
Click to reveal answer
beginner
Why might you want to vary marker sizes in a scatter plot?
To show extra information like quantity or importance, making the plot easier to understand at a glance.
Click to reveal answer
Which parameter controls marker size in matplotlib's scatter plot?
✗ Incorrect
The 's' parameter sets the marker size in plt.scatter().
What happens if you pass a list of sizes to the 's' parameter?
✗ Incorrect
Passing a list lets each marker have its own size.
If you want bigger markers, you should:
✗ Incorrect
Increasing 's' makes markers bigger.
Marker size in matplotlib scatter plots is measured in:
✗ Incorrect
Marker size uses points squared as units.
Why use different marker sizes in a scatter plot?
✗ Incorrect
Different sizes can represent extra data like quantity.
Explain how to vary marker sizes in a matplotlib scatter plot and why it might be useful.
Think about how size can represent importance or quantity.
You got /4 concepts.
Describe the unit of marker size in matplotlib and how changing it affects the plot.
Consider how size relates to the area of the marker.
You got /4 concepts.