For loop the ticklabels, and call set_visible()
:
for label in cbar.ax.xaxis.get_ticklabels()[::2]:
label.set_visible(False)
More Related Contents:
- Scatter plots in Pandas/Pyplot: How to plot by category [duplicate]
- Pandas timeseries plot setting x-axis major and minor ticks and labels
- Improve subplot size/spacing with many subplots in matplotlib
- How to draw intersecting planes?
- Horizontal stacked bar plot and add labels to each section
- How to use a (random) *.otf or *.ttf font in matplotlib?
- Reduce left and right margins in matplotlib plot
- How to change spacing between ticks in matplotlib?
- Wrapping long y labels in matplotlib tight layout using setp
- Change tick frequency on X (time, not number) frequency in matplotlib
- Plotting different colors in matplotlib [duplicate]
- Matplotlib: TypeError: can’t multiply sequence by non-int of type ‘numpy.float64’
- How to fill matplotlib bars with a gradient?
- What is %pylab?
- How to ‘turn off’ blurry effect of imshow() in matplotlib?
- Python basemap module impossible to import
- Python equivalent to ‘hold on’ in Matlab
- Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2)
- How is order of items in matplotlib legend determined?
- Format of datetime in pyplot axis
- Combining two matplotlib colormaps
- Add cylinder to plot
- How do you determine which backend is being used by matplotlib?
- matplotlib share x axis but don’t show x axis tick labels for both, just one
- how to turn on minor ticks only on y axis matplotlib
- Sorting the order of bars in pandas/matplotlib bar plots
- How to change matplotlib backends
- Date ticks and rotation [duplicate]
- Set markers for individual points on a line
- add colorbar to a sequence of line plots