reVReports.utilities.plots.wrap_labels#
- wrap_labels(ax, width, break_long_words=False)[source]#
Wrap tick labels of the x axis
- Parameters:
ax (
matplotlib.axes.Axes) – (sub-)Plot axes of matplotlib image.width (
int) – Maximum width of each line of the wrapped label (in number of characters).break_long_words (
bool, optional) – If True, long words may be hyphenated and split across lines. By defaultFalse, which will not split long words.