Skip to content

Commit f9c55c1

Browse files
michaelgrundwillschlitzerseisman
authored
Update the inset gallery example (#1287)
Co-authored-by: Will Schlitzer <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
1 parent 5aefe73 commit f9c55c1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

examples/gallery/embellishments/inset.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@
1414
# "brown", the water to "lightblue", the shorelines width to "thin", and adding a frame
1515
fig.coast(region="MG+r2", land="brown", water="lightblue", shorelines="thin", frame="a")
1616
# Create an inset, setting the position to top left, the width to 3.5 centimeters, and
17-
# the x- and y-offsets to 0.2 centimeters. The margin is set to 0, and the border is "gold".
18-
with fig.inset(position="jTL+w3.5c+o0.2c", margin=0, box="+pgold"):
17+
# the x- and y-offsets to 0.2 centimeters. The margin is set to 0, and the border is "gold"
18+
# with a pen size of 1.5p.
19+
with fig.inset(position="jTL+w3.5c+o0.2c", margin=0, box="+p1.5p,gold"):
1920
# Create a figure in the inset using coast. This example uses the azimuthal
2021
# orthogonal projection centered at 47E, 20S. The land color is set to "gray" and
21-
# Madagascar is highlighted in "red".
22+
# Madagascar is highlighted in "red3".
2223
fig.coast(
23-
region="g", projection="G47/-20/3.5c", land="gray", water="white", dcw="MG+gred"
24+
region="g",
25+
projection="G47/-20/?",
26+
land="gray",
27+
water="white",
28+
dcw="MG+gred3",
2429
)
2530
fig.show()

0 commit comments

Comments
 (0)