python - Turning off ticks in matplotlib for all plots (using rc) -


is there way turn of xticks , yticks using matplotlibrc or matplotlib config method? way see set sizes of ticks , tick labels zero. seems odd way, given can set_xticks(())

you can tick_params

plt.tick_params(axis='both', which='both')  

this affecting both axis (other options x or y). affects both major , minor ticks (other options major or minor)

this leave ticks around outer edge, not in plot. if want edge ticks removed, can add:

bottom='off' top='off' left='off' right='off' 

if want remove labels, you'll want turn these off

labelbottom='off' labeltop='off' labelleft='off' labelright='off' 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

python - GitPython: check if git is available -

How to merge four videos on one screen with ffmpeg -