Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plot every nth label in barplot

for i, t in enumerate(ax.get_xticklabels()):
    if (i % 5) != 0:
        t.set_visible(False)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #plot #nth #label #barplot
ADD COMMENT
Topic
Name
4+1 =