Skip to content

Commit 7521dae

Browse files
author
Benoît Vinot
committed
Correction of legend anchors
1 parent 10b7c6c commit 7521dae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

matplotlib2tikz/legend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ def draw_legend(data, obj):
123123
elif loc == 5:
124124
# right
125125
position = [1.0 - pad, 0.5]
126-
anchor = 'west'
126+
anchor = 'east'
127127
elif loc == 6:
128128
# center left
129129
position = [3 * pad, 0.5]
130-
anchor = 'east'
130+
anchor = 'west'
131131
elif loc == 7:
132132
# center right
133133
position = [1.0 - 3 * pad, 0.5]
134-
anchor = 'west'
134+
anchor = 'east'
135135
elif loc == 8:
136136
# lower center
137137
position = [0.5, 3 * pad]

0 commit comments

Comments
 (0)