|
10 | 10 |
|
11 | 11 | # %% |
12 | 12 | import pygmt |
| 13 | +from pygmt.params import Axis |
13 | 14 |
|
14 | 15 | # %% |
15 | 16 | # Loading the Earth relief dataset |
|
43 | 44 | # "oleron" is used; a full list of CPTs can be found at :gmt-docs:`reference/cpts.html`. |
44 | 45 |
|
45 | 46 | fig = pygmt.Figure() |
46 | | -fig.grdimage(grid=grid, frame="a", projection="M10c", cmap="SCM/oleron") |
| 47 | +fig.grdimage(grid=grid, frame=Axis(annot=True), projection="M10c", cmap="SCM/oleron") |
47 | 48 | fig.show() |
48 | 49 |
|
49 | 50 |
|
|
63 | 64 | # :meth:`pygmt.Figure.grdimage`. |
64 | 65 |
|
65 | 66 | fig = pygmt.Figure() |
66 | | -fig.grdimage(grid=grid, frame="a", projection="M10c", cmap="SCM/oleron") |
| 67 | +fig.grdimage(grid=grid, frame=Axis(annot=True), projection="M10c", cmap="SCM/oleron") |
67 | 68 | fig.colorbar(annot=1000, label="Elevation", unit="m") |
68 | 69 | fig.show() |
69 | 70 |
|
|
84 | 85 | # lines can be adjusted (separately) by specifying the desired ``pen``. |
85 | 86 |
|
86 | 87 | fig = pygmt.Figure() |
87 | | -fig.grdimage(grid=grid, frame="a", projection="M10c", cmap="SCM/oleron") |
| 88 | +fig.grdimage(grid=grid, frame=Axis(annot=True), projection="M10c", cmap="SCM/oleron") |
88 | 89 | fig.grdcontour(grid=grid, levels=500, annotation=1000) |
89 | 90 | fig.colorbar(annot=1000, label="Elevation", unit="m") |
90 | 91 | fig.show() |
|
99 | 100 | # the ``shorelines`` parameter draws a border around the islands. |
100 | 101 |
|
101 | 102 | fig = pygmt.Figure() |
102 | | -fig.grdimage(grid=grid, frame="a", projection="M10c", cmap="SCM/oleron") |
| 103 | +fig.grdimage(grid=grid, frame=Axis(annot=True), projection="M10c", cmap="SCM/oleron") |
103 | 104 | fig.grdcontour(grid=grid, levels=500, annotation=1000) |
104 | 105 | fig.coast(shorelines="2p", land="lightgray") |
105 | 106 | fig.colorbar(annot=1000, label="Elevation", unit="m") |
|
0 commit comments