figure_timestamp¶
- grizli.utils.figure_timestamp(fig, x=0.97, y=0.02, iso=True, text_prefix='', manual_text=None, ha='right', va='bottom', fontsize=5, color='k', alpha=1.0)[source]¶
Add a timestamp to a figure output
- Parameters
- fig
matplotlib
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 usetime.ctime()
- text_prefixstr
String to prepend to date
- manual_textstr
Force string to use
- ha, vastr
Horizontal and vertical alignment
- fontsize, color, alpha: int, str, float
Label properties (in
matplotlib.Figure.text
)
- fig
- Returns
- Adds a timestamp to the
fig
object
- Adds a timestamp to the