Skip to content

Commit bc47040

Browse files
Figure.logo: Add an inline example (#4479)
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
1 parent ff9252d commit bc47040

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pygmt/src/logo.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from pygmt.params import Box, Position
1414
from pygmt.src._common import _parse_position
1515

16+
__doctest_skip__ = ["logo"]
17+
1618

1719
@fmt_docstring
1820
def logo( # noqa: PLR0913
@@ -94,6 +96,14 @@ def logo( # noqa: PLR0913
9496
$panel
9597
$perspective
9698
$transparency
99+
100+
Examples
101+
--------
102+
>>> import pygmt
103+
>>> fig = pygmt.Figure()
104+
>>> fig.basemap(region=[-90, -70, 0, 20], projection="M10c", frame=True)
105+
>>> fig.logo(position="TR", width="3c")
106+
>>> fig.show()
97107
"""
98108
self._activate_figure()
99109

0 commit comments

Comments
 (0)