Feed on
Posts
Comments

to remove the ytick labels in matplotlib:

pylab.setp([a.get_yticklabels() for a in fig.axes],visible=False)


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “remove ytick labels in matplotlib”

  1. on 12 Sep 2011 at 10:03 am Colm Ryan

    An simpler alternative, without the list comprehension, is to set the tick labels to an empty sequence:

    plt.setp(plt.gca(), ‘yticklabels’,[])

Did I get this wrong? Let me know!

Trackback URI | Comments RSS