Which of the following is not a valid plotting function in pyplot?
Which of the following is not a valid plotting function in pyplot?
Solution
✅ Correct Option: 4
pyplot has no function called line(). Line graphs are drawn with plot(), for example , so line() is not a valid plotting function.
scatter() makes scatter plots, barh() makes horizontal bar charts and boxplot() makes box-and-whisker plots, so these three do exist in pyplot.
The word "line" appears only in names such as axhline() and axvline(), which draw horizontal and vertical reference lines.
Related questions:
2025: 13 May Shift 2
2026: 24 May Shift 1
2025: 13 May Shift 2
2025: 13 May Shift 2
2026: 13 May Shift 2