Hương Trang
New member
How do I get rid of grid lines in Matplotlib?
Answer
How to hide axes and gridlines in Matplotlib?
Answer
How to hide axes and gridlines in Matplotlib?
- Create x and y points using numpy.
- Plot a horizontal line (y=0) for X-Axis, using the plot() method with linestyle, labels.
- Plot x and y points using the plot() method with linestyle, labels.
- To hide the grid, use plt. …
- To hide the axes, use plt.axis(‘off’)