Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions examples/tutorials/basics/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
7 changes: 3 additions & 4 deletions pygmt/src/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading