remove ytick labels in matplotlib
July 2nd, 2011 by Lawrence David
to remove the ytick labels in matplotlib:
pylab.setp([a.get_yticklabels() for a in fig.axes],visible=False)
July 2nd, 2011 by Lawrence David
to remove the ytick labels in matplotlib:
pylab.setp([a.get_yticklabels() for a in fig.axes],visible=False)
An simpler alternative, without the list comprehension, is to set the tick labels to an empty sequence:
plt.setp(plt.gca(), ‘yticklabels’,[])