|
80 | 80 | #
|
81 | 81 | # Axis labels can be set by passing **x+l**\ *label* (or starting with **y** if
|
82 | 82 | # labeling the y-axis) to the ``frame`` argument of :meth:`pygmt.Figure.basemap`.
|
83 |
| -# Axis labels will be displayed on all primary axes, which the default is all sides of |
84 |
| -# the figure. To designate only some of the axes as primary, an argument that |
85 |
| -# capitlizes only the primary axes can be passed, which is ``"WSne"`` in the example |
86 |
| -# below. The letters correspond with west (left), south (bottom), north (top), and |
87 |
| -# east (right) sides of a figure. |
| 83 | +# By default, all 4 map boundaries (or plot axes) are plotted with both tick marks and |
| 84 | +# axis labels. The axes are named as **W** (west/left), **S** (south/bottom), |
| 85 | +# **N** (north/top), and **E** (east/right) sides of a figure. If an upper-case axis |
| 86 | +# name is passed, the axis is plotted with tick marks and axis labels. A lower case |
| 87 | +# axis name plots only the axis and tick marks. |
88 | 88 | #
|
89 | 89 | # The example below uses a Cartesian projection, as GMT does not allow axis labels to
|
90 | 90 | # be set for geographic maps.
|
|
93 | 93 | fig.basemap(
|
94 | 94 | region=[0, 10, 0, 20],
|
95 | 95 | projection="X10c/8c",
|
| 96 | + # Plot axis, tick marks, and axis labels on the west/left and south/bottom axes |
| 97 | + # Plot axis and tick marks on the north/top and east/right axes |
96 | 98 | frame=["WSne", "x+lx-axis", "y+ly-axis"],
|
97 | 99 | )
|
98 | 100 | fig.show()
|
0 commit comments