문제

Is there a way to remove the labels of the x axis, but not the grid lines?

Both solutions to remove the labels also removed my grid lines.

I tried: axes.get_xaxis().set_visible(False) and axes.get_xaxis().set_ticks([])

도움이 되었습니까?

해결책

Try this: axes.xaxis.set_tick_params(label1On=False)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top