Skip to content

Commit 4ed63f8

Browse files
Update axis label explanation in frames tutorial (#820)
1 parent 7e83aef commit 4ed63f8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/tutorials/frames.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@
8080
#
8181
# Axis labels can be set by passing **x+l**\ *label* (or starting with **y** if
8282
# 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.
8888
#
8989
# The example below uses a Cartesian projection, as GMT does not allow axis labels to
9090
# be set for geographic maps.
@@ -93,6 +93,8 @@
9393
fig.basemap(
9494
region=[0, 10, 0, 20],
9595
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
9698
frame=["WSne", "x+lx-axis", "y+ly-axis"],
9799
)
98100
fig.show()

0 commit comments

Comments
 (0)