Tuesday, 17 September 2013

remove x ticks but keep grid lines

remove x ticks but keep grid lines

I have a Pyplot plot, which I want to add gridlines to. I did this using:
plt.grid(True)
I then removed my x ticks using:
ax1.xaxis.set_visible(False)
My x ticks were removed, but so were the x grid lines. I would like them
to stay.
Is there a way I can do this please?

No comments:

Post a Comment