Which of the follwoing is NOT a valid component of a plot?
Which of the follwoing is NOT a valid component of a plot?
Solution
✅ Correct Option: 2
plt.matplot is not a function in Matplotlib's pyplot module. The nearest real functions are plt.plot(), which draws the line, and plt.matshow(), which displays a matrix.
plt.title() sets the plot title, plt.xlabel() labels the x-axis and plt.ylabel() labels the y-axis, so these are all valid components.
plt is the usual alias from import matplotlib.pyplot as plt.
Related questions:
2026: 21 May Shift 1
2026: 24 May Shift 1
2026: 29 May Shift 2
2026: 23 May Shift 1
2025: 30 May Shift 2
2025: 21 May Shift 1