Which of the following is NOT a valid graph function of matplotlib library?
Which of the following is NOT a valid graph function of matplotlib library?
Solution
✅ Correct Option: 4
matplotlib has no function called barv(). Vertical bar charts are drawn with bar(), and horizontal ones with barh().
Option 1: barh() is valid and draws horizontal bars.
Options 2 and 3: boxplot() draws box-and-whisker plots and scatter() draws scatter plots, so both are valid.
Function names in matplotlib are written in lowercase.
Related questions:
2026: 11 May Shift 2
2026: 24 May Shift 1
2026: 11 May Shift 2
2026: 13 May Shift 2
2025: 27 May Shift 2