2808 explained code solutions for 75 technologies


python-matplotlibHow to hide axis (ticks) values


import matplotlib.pyplot as plt

plt.plot([2,1,3,5,3,3,4,5,2,1])
ax = plt.gca()
ax.axes.xaxis.set_ticks([])
ax.axes.yaxis.set_ticks([])
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

.gca()

returns current axes object

set_ticks([])

sets empty ticks list to hide labels

.show()

render chart in a separate window