How to turn off the axes of a plot in Matplotlib

Turning off the axes of a Matplotlib plot removes the x and y axes from the plot.

Solution for How to turn off the axes of a plot in Matplotlib : You can use matplotlib.pyplot.axis() to turn off the axes Call matplotlib.pyplot.axis(string) with string as “off” to turn off the axes.


how-to-turn-off-the-axes-of-a-plot-in-matplotlib