Home »
Python »
Matplotlib MCQs
Which is/are the parameter(s) that can be used in grid() function to specify the line properties?
22. Which is/are the parameter(s) that can be used in grid() function to specify the line properties?
- color
- linestyle
- linewidth
- All of the above
Answer: D) All of the above
Explanation:
The all of the above parameters (color, linestyle, and linewidth) can be used in grid() function to set the various line properties.
plt.grid(color = 'Yellow', linestyle = '--', linewidth = 0.9)