|
47 | 47 | # %%
|
48 | 48 | import pygmt
|
49 | 49 |
|
50 |
| -fig = pygmt.Figure() |
| 50 | +pygmt.config(FONT="5p", MAP_FRAME_PEN="0.5p", MAP_TITLE_OFFSET="-5p") |
51 | 51 |
|
| 52 | +# ----------------------------------------------------------------------------- |
52 | 53 | # Left: Using the origin and azimuth
|
| 54 | +fig = pygmt.Figure() |
53 | 55 | fig.coast(
|
54 |
| - projection="Oa-120/25/-30/6c+v", |
| 56 | + projection="Oa-120/25/-30/2c+v", |
55 | 57 | # Set bottom left and top right coordinates of the figure with "+r"
|
56 | 58 | region="-122/35/-107/22+r",
|
57 | 59 | frame=["afg", "+ta | A"],
|
58 | 60 | land="gray",
|
59 | 61 | )
|
| 62 | +fig.show() |
60 | 63 |
|
61 |
| -fig.shift_origin(xshift="+w2c") |
62 |
| - |
| 64 | +# ----------------------------------------------------------------------------- |
63 | 65 | # Middle: Using two points
|
| 66 | +fig = pygmt.Figure() |
64 | 67 | fig.coast(
|
65 |
| - projection="Ob130/35/25/35/6c", |
| 68 | + projection="Ob130/35/25/35/2c", |
66 | 69 | region="130/35/145/40+r",
|
67 | 70 | frame=["afg", "+tb | B"],
|
68 | 71 | land="gray",
|
69 | 72 | )
|
| 73 | +fig.show() |
70 | 74 |
|
71 |
| -fig.shift_origin(xshift="+w2c") |
72 |
| - |
| 75 | +# ----------------------------------------------------------------------------- |
73 | 76 | # Right: Using the origin and projection pole
|
| 77 | +fig = pygmt.Figure() |
74 | 78 | fig.coast(
|
75 |
| - projection="Oc280/25.5/22/69/12c", |
| 79 | + projection="Oc280/25.5/22/69/3c", |
76 | 80 | region="270/20/305/25+r",
|
77 | 81 | frame=["afg", "+tc | C"],
|
78 | 82 | land="gray",
|
79 | 83 | )
|
80 |
| - |
81 | 84 | fig.show()
|
| 85 | + |
| 86 | +# sphinx_gallery_thumbnail_number = 3 |
0 commit comments