add_timestamp¶
-
metpy.plots.
add_timestamp
(ax, time=None, x=0.99, y=-0.04, ha='right', high_contrast=False, **kwargs)[source]¶ Add a timestamp at plot creation time.
Adds an ISO format timestamp with the time of plot creation to the plot.
Parameters: - ax (
matplotlib.axes.Axes
) – The Axes instance used for plotting - time (
datetime.datetime
) – Specific time to be plotted - datetime.utcnow will be use if not specified - x (float) – Relative x position on the axes of the timestamp
- y (float) – Relative y position on the axes of the timestamp
- ha (str) – Horizontal alignment of the time stamp string
- high_contrast (bool) – Outline text for increased contrast
Returns: matplotlib.text.Text
– Thematplotlib.text.Text
instance created- ax (