I have a plot that looks like this (this is the famous Wine dataset):
As you can see, the x-axis labels overlap and thus I need to be rotated.
NB! I am not interested in rotating the x-ticks (as explained here), but the label text, i.e. alcohol
, malic_acid
, etc.
The logic of creating the plot is the following: I create a grid using axd = fig.subplot_mosaic(...)
and then for the bottom plots I set the labels with axd[...].set_xlabel("something")
. Would be great if set_xlabel
would take a rotation
parameter, but unfortunately that is not the case.
set_xlabel
doesn't have arotation=
parameter? Did you try it? The documentation tellsOther Parameters: **kwargs: Text properties
. In theory, all text properties can be added as parameter toset_xlabel
.