diff --git a/pygmt/src/logo.py b/pygmt/src/logo.py index fccec0fe072..fb0421fc9d9 100644 --- a/pygmt/src/logo.py +++ b/pygmt/src/logo.py @@ -94,6 +94,18 @@ def logo( # noqa: PLR0913 $panel $perspective $transparency + + Examples + -------- + >>> import pygmt + >>> from pygmt.params import Position + >>> fig = pygmt.Figure() + >>> # Create a basemap to give the plot a coordinate system + >>> fig.basemap(region=[0, 10, 0, 10], projection="X10c", frame=True) + >>> # Add the GMT logo in the Top Right (TR) corner of the plot, + >>> # scaled to be 2 cm wide and offset by 0.5 cm in x and y. + >>> fig.logo(position=Position("TR", offset="0.5c/0.5c"), width="2c") + >>> fig.show() """ self._activate_figure()