diff --git a/examples/tutorials/basics/text.py b/examples/tutorials/basics/text.py index fb12cfa65b9..2b582a23e60 100644 --- a/examples/tutorials/basics/text.py +++ b/examples/tutorials/basics/text.py @@ -77,15 +77,15 @@ # Plot text labels at the x and y positions of the markers while varying the anchor # point via the justify parameter -fig.text(x=-0.5, y=0.5, text="TL", justify="TL") # TopLeft -fig.text(x=0, y=0.5, text="TC", justify="TC") # TopCenter -fig.text(x=0.5, y=0.5, text="TR", justify="TR") # TopRight -fig.text(x=-0.5, y=0, text="ML", justify="ML") # MiddleLeft -fig.text(x=0, y=0, text="MC", justify="MC") # MiddleCenter -fig.text(x=0.5, y=0, text="MR", justify="MR") # MiddleRight -fig.text(x=-0.5, y=-0.5, text="BL", justify="BL") # BottomLeft -fig.text(x=0, y=-0.5, text="BC", justify="BC") # BottomCenter -fig.text(x=0.5, y=-0.5, text="BR", justify="BR") # BottomRight +fig.text(x=-0.5, y=0.5, text="TL", justify="TL") # Top Left +fig.text(x=0, y=0.5, text="TC", justify="TC") # Top Center +fig.text(x=0.5, y=0.5, text="TR", justify="TR") # Top Right +fig.text(x=-0.5, y=0, text="ML", justify="ML") # Middle Left +fig.text(x=0, y=0, text="MC", justify="MC") # Middle Center +fig.text(x=0.5, y=0, text="MR", justify="MR") # Middle Right +fig.text(x=-0.5, y=-0.5, text="BL", justify="BL") # Bottom Left +fig.text(x=0, y=-0.5, text="BC", justify="BC") # Bottom Center +fig.text(x=0.5, y=-0.5, text="BR", justify="BR") # Bottom Right fig.show() diff --git a/pygmt/src/legend.py b/pygmt/src/legend.py index d4455fbe393..27be8e11f95 100644 --- a/pygmt/src/legend.py +++ b/pygmt/src/legend.py @@ -75,10 +75,9 @@ def legend( # noqa: PLR0913 [**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*\ **+w**\ *width*\ [/*height*]\ [**+j**\ *justify*]\ [**+l**\ *spacing*]\ [**+o**\ *dx*\ [/*dy*]]. - Define the reference point on the map for the - legend. By default, uses **JTR**\ **+jTR**\ **+o**\ 0.2c which - places the legend at the top-right corner inside the map frame, with a - 0.2 cm offset. + Define the reference point on the map for the legend. By default, uses + **JTR**\ **+jTR**\ **+o**\ 0.2c which places the legend at the Top Right corner + inside the map frame, with a 0.2 cm offset. box Draw a background box behind the legend. If set to ``True``, a simple rectangular box is drawn using :gmt-term:`MAP_FRAME_PEN`. To customize the box