Skip to content

Update axis label explanation in frames tutorial #820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions examples/tutorials/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
#
# Axis labels can be set by passing **x+l**\ *label* (or starting with **y** if
# labeling the y-axis) to the ``frame`` argument of :meth:`pygmt.Figure.basemap`.
# Axis labels will be displayed on all primary axes, which the default is all sides of
# the figure. To designate only some of the axes as primary, an argument that
# capitlizes only the primary axes can be passed, which is ``"WSne"`` in the example
# below. The letters correspond with west (left), south (bottom), north (top), and
# east (right) sides of a figure.
# By default, all 4 map boundaries (or plot axes) are plotted with both tick marks and
# axis labels. The axes are named as **W** (west/left), **S** (south/bottom),
# **N** (north/top), and **E** (east/right) sides of a figure. If an upper-case axis
# name is passed, the axis is plotted with tick marks and axis labels. A lower case
# axis name plots only the axis and tick marks.
#
# The example below uses a Cartesian projection, as GMT does not allow axis labels to
# be set for geographic maps.
Expand All @@ -93,6 +93,8 @@
fig.basemap(
region=[0, 10, 0, 20],
projection="X10c/8c",
# Plot axis, tick marks, and axis labels on the west/left and south/bottom axes
# Plot axis and tick marks on the north/top and east/right axes
frame=["WSne", "x+lx-axis", "y+ly-axis"],
)
fig.show()