Matplotlib - Seaborn Integration
You want to create a figure with two different plots side by side: a histogram and a scatterplot. Which approach correctly uses Seaborn's figure-level and axes-level functions together?
relplot is figure-level and creates its own figure; histplot and scatterplot are axes-level and can plot on existing axes.plt.subplots() and plotting axes-level functions on each axes allows side-by-side plots in one figure.sns.histplot() on one axes and sns.scatterplot() on another axes created by plt.subplots(). correctly uses axes-level functions on subplots. Options A, B, and D misuse figure-level functions or ax= parameter.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions