9951 explained code solutions for 126 technologies


python-matplotlibHow to remove x-axis labels


import matplotlib.pyplot as plt

plt.plot([2,1,3])
plt.xticks([], [])
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

xtick

setup x-axis ticks params

[], []

this will set empty list for ticks, thus remove them

.show()

render chart in a separate window