INNER CODE UNIT · Python
rotate_xlabel
lgienapp/aquarel · aquarel/transforms.py:16
def rotate_xlabel(degrees: int):
"""
Rotates the x-labels of the current plot.
:param degrees: rotation in degrees
"""
axes = plt.gcf().axes
for ax_i in axes:
ax_i.tick_params(axis="x", rotation=degrees)
def offset(distance: int):
"""
Offsets the plot spines.
Code partly taken from https://github.com/mwaskom/seaborn/blob/563e96d3be1eaee8db8dfbccf7eed1f1c66dfd31/seaborn/utils.py#L292
:param distance: offset distance int pt.
"""