I\'m using python + matplotlib and I\'m having two plots share an axis. If you try to set graph1.set_xticklabels([]) while sharing an axis, it has no effect bec
graph1.set_xticklabels([])
You could use Axes.tick_params():
import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212, sharex=ax1) ax1.tick_params(labelbottom=False)