Plt Hide Axis Ticks

[Solved] Plt Hide Axis Ticks | C - Code Explorer | yomemimo.com
Question : plt hide axis ticks

Answered by : chongchong-he

 pythonCopyimport matplotlib.pyplot as plt
plt.plot([0, 10], [0, 10])
plt.xlabel("X Label")
plt.ylabel("Y Label")
ax = plt.gca()
ax.axes.xaxis.set_visible(False)
ax.axes.yaxis.set_visible(False)
plt.grid(True)
plt.show()

Source : https://www.delftstack.com/howto/matplotlib/how-to-hide-axis-text-ticks-and-or-tick-labels-in-matplotlib/ | Last Update : Thu, 13 Aug 20

Answers related to plt hide axis ticks

Code Explorer Popular Question For C