Я хочу сделать график в matplotlib, где я могу изменить выравнивание моей повернутой метки оси Y.
Вот пример кода, который я написал. В идеале «Это примерный сюжет» было бы оправдано слева.
fig = plt.figure(figsize=(13, 10))
ax1 = fig.add_subplot(111)
sns.lineplot(
x='x',
y='y',
data=pd.DataFrame([{'x': 0, 'y': 0}, {'x': 1, 'y': 1}]),
ax=ax1
)
ax1.set_ylabel('This is an\nexample plot', rotation=0)
ax1.yaxis.set_label_coords(0.05, 0.95)
