I had a problem with the answer by @mwaskorn, namely that
g.set_xticklabels(rotation=30)
fails, because this also requires the labels. A bit easier than the answer by @Aman is to just add
plt.xticks(rotation=45)
More Related Contents:
- Plotting with seaborn using the matplotlib object-oriented interface
- Move seaborn plot legend to a different position
- matplotlib strings as labels on x axis
- Embedding small plots inside subplots in matplotlib
- How to display custom values on a bar plot
- Matplotlib: setting x-limits also forces tick labels?
- Pyplot sorting y-values automatically
- Calling pylab.savefig without display in ipython
- How to format seaborn/matplotlib axis tick labels from number to thousands or Millions? (125,436 to 125.4K)
- matplotlib python inline on/off
- How can plot Artists be reused (Line2D)?
- Stacked bar chart in Seaborn
- Emulating deprecated seaborn distplots
- Improve subplot size/spacing with many subplots
- How to add percentages on top of grouped bars
- How to edit properties of whiskers, fliers, caps, etc. in Seaborn boxplot
- Plot multiple columns of pandas DataFrame using Seaborn
- How to plot multiple bars grouped
- Normed histogram y-axis larger than 1
- How does one insert statistical annotations (stars or p-values) into matplotlib / seaborn plots?
- How to express classes on the axis of a heatmap in Seaborn
- Seaborn tsplot does not show datetimes on x axis well
- How to plot a mean line on a kdeplot between 0 and the y value of the mean
- Matplotlib – sequence is off when using plt.imshow()
- Line plot over bar plot using Seaborn – Line plot won’t render
- Is it possible to add hatches to each individual bar in seaborn.barplot?
- matplotlib: adding padding/offset to polar plots tick labels
- Add image annotations to bar plots
- Seaborn multiple barplots
- Add density curve on the histogram