Which of the following are components of a plot?
(A) Legend
(B) Ticks
(C) Title
(D) xlabel
Which of the following are components of a plot?
(A) Legend
(B) Ticks
(C) Title
(D) xlabel
Solution
✅ Correct Option: 3
All four are components of a plot. A legend explains what each line or marker represents, ticks mark the values along the axes, the title names the plot, and the xlabel describes what the x-axis shows.
In Matplotlib, these are added with plt.legend(), plt.xticks(), plt.title() and plt.xlabel().
Related questions:
2025: 3 June Shift 2
2026: 23 May Shift 2
2025: 30 May Shift 2