Recall & Review
beginner
What is a figure-level function in Seaborn?
A figure-level function creates a whole figure with its own axes and manages the layout automatically. It returns a FacetGrid object that can handle multiple subplots.
Click to reveal answer
beginner
What is an axes-level function in Seaborn?
An axes-level function draws a plot on a single matplotlib Axes object. It does not create a new figure or manage layout, so you can combine multiple plots manually.
Click to reveal answer
beginner
Name one example of a figure-level function and one example of an axes-level function in Seaborn.
Figure-level example: sns.catplot() <br> Axes-level example: sns.boxplot()
Click to reveal answer
intermediate
Why would you choose a figure-level function over an axes-level function?
Use figure-level functions when you want Seaborn to handle the whole figure, including multiple subplots and layout, especially for complex visualizations with facets.
Click to reveal answer
intermediate
How can you combine multiple axes-level plots into one figure?
You create a matplotlib figure and axes manually, then call axes-level functions on each axes to draw multiple plots in the same figure.
Click to reveal answer
Which Seaborn function type automatically creates a figure and manages layout?
✗ Incorrect
Figure-level functions create the entire figure and handle layout automatically.
Which of these is an axes-level function in Seaborn?
✗ Incorrect
sns.boxplot() draws on a single axes and does not create a new figure.
If you want to create multiple subplots with facets, which function type should you use?
✗ Incorrect
Figure-level functions support facets and multiple subplots automatically.
What does an axes-level function require you to do if you want multiple plots?
✗ Incorrect
Axes-level functions need manual axes creation to combine multiple plots.
Which object does a figure-level function return?
✗ Incorrect
Figure-level functions return a FacetGrid object to manage the figure and subplots.
Explain the difference between Seaborn figure-level and axes-level functions with examples.
Think about who manages the figure and layout.
You got /4 concepts.
Describe how you would create a figure with multiple plots using axes-level functions.
Remember axes-level functions do not create figures automatically.
You got /3 concepts.