8000 Fix scale factor label issue #4043 · matplotlib/matplotlib@63e1c1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 63e1c1b

Browse files
committed
Fix scale factor label issue #4043
Added the line, self.set_offset_position(position) in the YAxis class (line 2026) and it appears to fix the issue of the scale factor label not moving to the right with the tick labels.
1 parent 942b428 commit 63e1c1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/axis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,7 @@ def set_label_position(self, position):
20232023
assert position == 'left' or position == 'right'
20242024
self.label.set_rotation_mode('anchor')
20252025
self.label.set_horizontalalignment('center')
2026+
self.set_offset_position(position)
20262027
if position == 'left':
20272028
self.label.set_verticalalignment('bottom')
20282029
else:

0 commit comments

Comments
 (0)
0