Skip to content
Merged
Changes from 8 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
18 changes: 18 additions & 0 deletions examples/gallery/embellishments/timestamp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Timestamp
---------
The :meth:`pygmt.Figure.timestamp` method can draw the
GMT timestamp logo on the map/plot. A custom label
can be added via the ``label`` parameter.
"""

import pygmt

fig = pygmt.Figure()
Comment thread
michaelgrund marked this conversation as resolved.
fig.timestamp()
fig.show()

# Plot the GMT timestamp logo with a custom label.
Comment thread
michaelgrund marked this conversation as resolved.
Outdated
Comment thread
michaelgrund marked this conversation as resolved.
Outdated
fig = pygmt.Figure()
fig.timestamp(label="Powered by PyGMT")
fig.show()