Skip to content

Commit 3be6a08

Browse files
committed
Add a doctest
1 parent 02ae339 commit 3be6a08

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pygmt/params/perspective.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@
1515
class Perspective(BaseParam):
1616
"""
1717
Class for setting perspective view.
18+
19+
Examples
20+
--------
21+
>>> import pygmt
22+
>>> from pygmt.params import Perspective
23+
>>> fig = pygmt.Figure()
24+
>>> fig.basemap(
25+
... region=[0, 10, 0, 10, 0, 20],
26+
... projection="X3c",
27+
... zsize="3c",
28+
... frame=["xafg", "yafg", "zafg", "wSEnZ"],
29+
... perspective=Perspective(azimuth=135, elevation=40, zlevel=10),
30+
... )
31+
>>> fig.show()
1832
"""
1933

2034
#: Azimuth of the viewpoint in degress. Default is 180.0 (looking from south to

0 commit comments

Comments
 (0)