Skip to content

Commit 4a0e511

Browse files
DOC: Make writting of justification codes consistent (#4266)
1 parent 0282b2f commit 4a0e511

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

examples/tutorials/basics/text.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@
7777

7878
# Plot text labels at the x and y positions of the markers while varying the anchor
7979
# point via the justify parameter
80-
fig.text(x=-0.5, y=0.5, text="TL", justify="TL") # TopLeft
81-
fig.text(x=0, y=0.5, text="TC", justify="TC") # TopCenter
82-
fig.text(x=0.5, y=0.5, text="TR", justify="TR") # TopRight
83-
fig.text(x=-0.5, y=0, text="ML", justify="ML") # MiddleLeft
84-
fig.text(x=0, y=0, text="MC", justify="MC") # MiddleCenter
85-
fig.text(x=0.5, y=0, text="MR", justify="MR") # MiddleRight
86-
fig.text(x=-0.5, y=-0.5, text="BL", justify="BL") # BottomLeft
87-
fig.text(x=0, y=-0.5, text="BC", justify="BC") # BottomCenter
88-
fig.text(x=0.5, y=-0.5, text="BR", justify="BR") # BottomRight
80+
fig.text(x=-0.5, y=0.5, text="TL", justify="TL") # Top Left
81+
fig.text(x=0, y=0.5, text="TC", justify="TC") # Top Center
82+
fig.text(x=0.5, y=0.5, text="TR", justify="TR") # Top Right
83+
fig.text(x=-0.5, y=0, text="ML", justify="ML") # Middle Left
84+
fig.text(x=0, y=0, text="MC", justify="MC") # Middle Center
85+
fig.text(x=0.5, y=0, text="MR", justify="MR") # Middle Right
86+
fig.text(x=-0.5, y=-0.5, text="BL", justify="BL") # Bottom Left
87+
fig.text(x=0, y=-0.5, text="BC", justify="BC") # Bottom Center
88+
fig.text(x=0.5, y=-0.5, text="BR", justify="BR") # Bottom Right
8989

9090
fig.show()
9191

pygmt/src/legend.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,9 @@ def legend( # noqa: PLR0913
7575
[**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*\
7676
**+w**\ *width*\ [/*height*]\ [**+j**\ *justify*]\ [**+l**\ *spacing*]\
7777
[**+o**\ *dx*\ [/*dy*]].
78-
Define the reference point on the map for the
79-
legend. By default, uses **JTR**\ **+jTR**\ **+o**\ 0.2c which
80-
places the legend at the top-right corner inside the map frame, with a
81-
0.2 cm offset.
78+
Define the reference point on the map for the legend. By default, uses
79+
**JTR**\ **+jTR**\ **+o**\ 0.2c which places the legend at the Top Right corner
80+
inside the map frame, with a 0.2 cm offset.
8281
box
8382
Draw a background box behind the legend. If set to ``True``, a simple
8483
rectangular box is drawn using :gmt-term:`MAP_FRAME_PEN`. To customize the box

0 commit comments

Comments
 (0)