Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9fba92

Browse files
pwuertzpwuertz
authored andcommitted
use anchored rotation for y-labels
1 parent 347c408 commit b9fba92

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/matplotlib/axis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,9 +1847,10 @@ def _get_label(self):
18471847
size=rcParams['axes.labelsize'],
18481848
weight=rcParams['axes.labelweight']),
18491849
color=rcParams['axes.labelcolor'],
1850-
verticalalignment='center',
1851-
horizontalalignment='right',
1850+
verticalalignment='bottom',
1851+
horizontalalignment='center',
18521852
rotation='vertical',
1853+
rotation_mode='anchor',
18531854
)
18541855
label.set_transform(mtransforms.blended_transform_factory(
18551856
mtransforms.IdentityTransform(), self.axes.transAxes))

0 commit comments

Comments
 (0)