Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plt hide axis ticks

 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 by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #plt #hide #axis #ticks
ADD COMMENT
Topic
Name
6+3 =