Skip to content

Commit b783b70

Browse files
tgwoodcockmarcharper
authored andcommitted
Changed offset behaviour of bottom_axis_label
Added a minus sign in the definition of position in bottom_axis_label() so that increasing the value of offset moves the label down, further below the bottom axis. This seemed more intuitive to me because when increasingn the value of offset for the other two axes, the labels move further away from the axes i.e. away from the centre of th simplex.
1 parent d42505e commit b783b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ternary/ternary_axes_subplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def bottom_axis_label(self, label, position=None, rotation=0, offset=0.02,
184184
"""
185185

186186
if not position:
187-
position = (1./2, offset, 1./2)
187+
position = (1./2, -offset, 1./2)
188188
self._labels["bottom"] = (label, position, rotation, kwargs)
189189

190190
def annotate(self, text, position, **kwargs):

0 commit comments

Comments
 (0)