figure_timestamp

grizli.utils.figure_timestamp(fig, x=0.97, y=0.02, iso=True, ha='right', va='bottom', fontsize=5, color='k', alpha=1.0)[source]

Add a timestamp to a figure output

Parameters
figmatplotlib Figure

Figure object

x, yfloat

Label position in fig.transFigure coordinates (i.e., 0 < x,y < 1)

isobool

Use ISO-formatted time from ctime_to_iso, otherwise use time.ctime()

ha, vastr

Horizontal and vertical alignment

fontsize, color, alpha: int, str, float

Label properties (in matplotlib.Figure.text)

Returns
Adds a timestamp to the fig object