Skip to content

Commit 88709ed

Browse files
author
Meghan Jones
authored
Merge branch 'main' into bump-gmt-6.3.0
2 parents 1146662 + 3c4b003 commit 88709ed

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

examples/gallery/embellishments/colorbars_multiple.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@
2828
pygmt.makecpt(cmap="geo", series=[-8000, 8000])
2929
# "R?" means Winkel Tripel projection with map width automatically
3030
# determined from the subplot width.
31-
fig.grdimage(grid=grid_globe, projection="R?", region="g", frame=True)
31+
fig.grdimage(grid=grid_globe, projection="R?", region="g", frame="a")
3232
fig.colorbar(frame=["a4000f2000", "x+lElevation", "y+lm"])
3333
# Activate the second panel so that the colormap created by the makecpt
3434
# method is a panel-level CPT
3535
with fig.set_panel(panel=1):
3636
pygmt.makecpt(cmap="globe", series=[-6000, 3000])
3737
# "M?" means Mercator projection with map width also automatically
3838
# determined from the subplot width.
39-
fig.grdimage(
40-
grid=grid_subset, projection="M?", region=subset_region, frame=True
41-
)
39+
fig.grdimage(grid=grid_subset, projection="M?", region=subset_region, frame="a")
4240
fig.colorbar(frame=["a2000f1000", "x+lElevation", "y+lm"])
4341

4442
fig.show()

examples/gallery/symbols/text_symbols.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
the ``style`` parameter where *size* defines the size of the text symbol
99
(note: the size is only approximate; no individual scaling is done for
1010
different characters) and *string* can be a letter or a text string
11-
(less than 256 characters). Optionally, you can append **+f**\ *font* to
12-
select a particular font [Default is :gmt-term:`FONT_ANNOT_PRIMARY`] as well as
13-
**+j**\ *justify* to change the justification [Default is CM]. Outline
14-
and fill color of the text symbols can be customized via the ``pen``
15-
and ``color`` parameters, respectively.
16-
11+
(less than 256 characters). Optionally, you can append
12+
**+f**\ *font,outlinecolor* to select a particular font [Default is
13+
:gmt-term:`FONT_ANNOT_PRIMARY`] and outline color [Default is black] as well
14+
as **+j**\ *justify* to change the justification [Default is CM]. The fill
15+
color of the text symbols can be set with the ``color`` parameter, and the
16+
outline width can be customized with the ``pen`` parameter.
1717
For all supported octal codes and fonts see the GMT cookbook
1818
:gmt-docs:`cookbook/octal-codes.html` and
1919
:gmt-docs:`cookbook/postscript-fonts.html`.
@@ -37,7 +37,8 @@
3737
# color fill is set to "gold"
3838
fig.plot(x=5.5, y=1.5, style="l3.5c+ts+fTimes-Italic", color="gold", pen=pen)
3939
# plot the pi symbol (\160 is octal code for pi) of size 3.5c, for this use
40-
# the "Symbol" font, color fill is set to "magenta4"
41-
fig.plot(x=7, y=1.5, style="l3.5c+t\160+fSymbol", color="magenta4", pen=pen)
40+
# the "Symbol" font, the outline color of the symbol is set to
41+
# "darkorange", the color fill is set to "magenta4"
42+
fig.plot(x=7, y=1.5, style="l3.5c+t\160+fSymbol,darkorange", color="magenta4", pen=pen)
4243

4344
fig.show()

0 commit comments

Comments
 (0)