0 votes
1 view
in Python by (47.8k points)

I have a semilogx plot and I would like to remove the xticks. I tried:

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?

1 Answer

0 votes
by (107k points)

To remove xticks in a matplotlib plot you can use the below-mentioned code:-

image

Related questions

0 votes
1 answer
asked Jul 31, 2019 in Data Science by sourav (17.6k points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...