Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k 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 (106k 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
asked Jan 5, 2021 in Python by laddulakshana (12.7k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers

501 comments

104k users

Browse Categories

...