This works for me:
plt.xticks(rotation=90)
More Related Contents:
- Secondary axis with twinx(): how to add to legend?
- How to remove relative shift in matplotlib axis
- How to share x axes of two subplots after they have been created
- Python, Matplotlib, subplot: How to set the axis range?
- matplotlib (equal unit length): with ‘equal’ aspect ratio z-axis is not equal to x- and y-
- Aligning rotated xticklabels with their respective xticks
- Axes class – set explicitly size (width/height) of axes in given units
- Show decimal places and scientific notation on the axis of a matplotlib plot
- How to increase/reduce the fontsize of x and y tick labels
- How to set the subplot axis range
- How to force the Y axis to only use integers
- Matplotlib showing x-tick labels overlapping
- Setting the position of the `ylabel`
- Overlapping yticklabels: Is it possible to control cell size of heatmap in seaborn?
- How to set the ‘equal’ aspect ratio for all axes (x, y, z)
- Show decimal places and scientific notation on the axis
- Aligning y-ticks to the left
- X-axis tick labels are too dense when drawing plots
- Changing the color of an axis
- Restrict axis to integer tick locations
- How to create a density plot in matplotlib?
- custom matplotlib plot : chess board like table with colored cells
- 3D animation using matplotlib
- How do you plot a vertical line on a time series plot in Pandas?
- Python saving multiple figures into one PDF file
- How to force integer tick labels
- How to remove gaps between bars in Matplotlib bar chart
- matplotlib very slow. Is it normal?
- How to forget previous plots – how can I flush/refresh?
- Is it possible to draw a boxplot given the percentile values instead of the original inputs?