What is the purpose of the plt.stackplot() function in Matplotlib?
Correct answer
C. To create a stacked area plot
17 views
C. To create a stacked area plot
17 views
plt.stackplot() creates a stacked area plot: several series are drawn on top of one another so the total height shows the combined value.
It suits data showing how parts contribute to a whole over time.
Want more practice? Try the full set of Data Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.