The labels on my horizontal colorbar are too close together and I don\'t want to reduce text size further:
cbar = plt.colorbar(shrink=0.8, orientation=\'hori
One-liner for those who are into that!
n = 7 # Keeps every 7th label [l.set_visible(False) for (i,l) in enumerate(ax.xaxis.get_ticklabels()) if i % n != 0]