|
8 | 8 |
|
9 | 9 | # %% |
10 | 10 | import pygmt |
11 | | -from pygmt.params import Box, Position |
| 11 | +from pygmt.params import Axis, Box, Frame, Position |
12 | 12 |
|
13 | 13 | # Create a new Figure instance |
14 | 14 | fig = pygmt.Figure() |
15 | 15 |
|
16 | 16 | # Mercator projection with 10 centimeters width |
17 | | -fig.basemap(region=[-45, -25, -15, 0], projection="M0/0/10c", frame=["WSne", "af"]) |
| 17 | +fig.basemap( |
| 18 | + region=[-45, -25, -15, 0], |
| 19 | + projection="M0/0/10c", |
| 20 | + frame=Frame(axes="WSne", axis=Axis(annot=True, tick=True)), |
| 21 | +) |
18 | 22 |
|
19 | 23 | # --- Top Left: Add a plain scale bar --- |
20 | 24 | # It is placed based on geographic coordinates 42° West and 1° South, applies at the |
|
67 | 71 |
|
68 | 72 | fig = pygmt.Figure() |
69 | 73 |
|
70 | | -fig.basemap(region=[-45, -25, -15, 0], projection="M10c", frame=["WSne", "af"]) |
| 74 | +fig.basemap( |
| 75 | + region=[-45, -25, -15, 0], |
| 76 | + projection="M10c", |
| 77 | + frame=Frame(axes="WSne", axis=Axis(annot=True, tick=True)), |
| 78 | +) |
71 | 79 | fig.coast(land="tan", water="steelblue") |
72 | 80 | fig.scalebar( |
73 | 81 | position=Position("BL", cstype="inside", offset=1), |
|
0 commit comments