Back
I have a semilogx plot and I would like to remove the xticks. I tried:
plt.gca().set_xticks([]) plt.xticks([]) ax.set_xticks([])
plt.gca().set_xticks([])
plt.xticks([])
ax.set_xticks([])
The grid disappears (ok), but small ticks (at the place of the main ticks) remain. How to remove them?
To remove xticks in a matplotlib plot you can use the below-mentioned code:-
31k questions
32.8k answers
501 comments
693 users