What is the purpose of the plt.stairs() function in Matplotlib?
Correct answer
B. To create a step plot with constant values between points
15 views
B. To create a step plot with constant values between points
15 views
plt.stairs() draws a step plot with constant values between edges. You pass the values and the bin edges, which makes it ideal for showing pre-computed histograms.
It was added in Matplotlib 3.4 as a simpler alternative to plt.step().
Keep preparing with more Data Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.