Skip to content

Commit

Permalink
Set title font to Times-Roman
Browse files Browse the repository at this point in the history
Makes the unequal spacing before and after the ā less obvious.
  • Loading branch information
weiji14 committed Aug 26, 2023
1 parent 60d1be3 commit b516c19
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions examples/gallery/images/rgb_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
###############################################################################
# Plot the RGB imagery
fig = pygmt.Figure()
fig.grdimage(
grid=image,
projection="x1:100000",
frame=[r"WSne+tL@!a\225hain@!a\225, Hawai\047i on 9 Aug 2023", "af"],
)
with pygmt.config(FONT_TITLE="Times-Roman"): # Set title font to Times-Roman
fig.grdimage(
grid=image,
projection="x1:100000",
frame=[r"WSne+tL@!a\225hain@!a\225, Hawai\047i on 9 Aug 2023", "af"],
)
fig.savefig("Lāhainā.png")
fig.show()

0 comments on commit b516c19

Please sign in to comment.