Skip to content

Commit 5c3b519

Browse files
DOC: Add import of Axis and Frame parameter classes to inline examples (#4717)
1 parent 8b473a5 commit 5c3b519

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pygmt/params/frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Axis(BaseParam):
2323
annotations, 2 for ticks, and 1 for gridlines:
2424
2525
>>> import pygmt
26+
>>> from pygmt.params import Axis
2627
>>> fig = pygmt.Figure()
2728
>>> fig.basemap(
2829
... region=[0, 10, 0, 20],
@@ -127,6 +128,7 @@ class Frame(BaseParam):
127128
and north axes with ticks but without annotations:
128129
129130
>>> import pygmt
131+
>>> from pygmt.params import Axis, Frame
130132
>>> fig = pygmt.Figure()
131133
>>> fig.basemap(
132134
... region=[0, 10, 0, 20], projection="X10c/10c", frame=Frame(axes="WSen")

0 commit comments

Comments
 (0)