# for matplotlib.pyplot # --------------------- plt.xticks([], []) # for axis object # --------------- # from Anakhand May 5 at 13:08 # for major ticks ax.set_xticks([]) # for minor ticks ax.set_xticks([], minor=True)