Feed on
Posts
Comments

to remove the labels of the x-axis:

ax.get_xaxis().set_ticks([])

to remove the labels of the y-axis:

ax.get_yaxis().set_ticks([])

UPDATE (w/ Matplotlib 1.3):

An even easier way:

pl.tick_params(labeltop=False, labelbottom=False, bottom=False, top=False, labelright=True)


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!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS