From 80468e422ed234a74bb7265d05c17ad35b7490b0 Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Thu, 24 Oct 2024 15:26:57 +0300 Subject: [PATCH] DOC: Aligning multi-line element_text closes #881 --- plotnine/themes/elements/element_text.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plotnine/themes/elements/element_text.py b/plotnine/themes/elements/element_text.py index 6cdfa18c7..145f86994 100644 --- a/plotnine/themes/elements/element_text.py +++ b/plotnine/themes/elements/element_text.py @@ -38,6 +38,8 @@ class element_text(element_base): Horizontal Alignment. va : Vertical alignment. + ma : + Horizontal Alignment for multiline text. rotation : Rotation angle in the range [0, 360]. The `rotation` is affected by the `rotation_mode`. @@ -88,6 +90,7 @@ def __init__( Literal["center", "top", "bottom", "baseline", "center_baseline"] | float ] = None, + ma: Optional[Literal["center", "left", "right"] | float] = None, rotation: Optional[ Literal["vertical", "horizontal"] | float