add_time_label

tulips.tulips.add_time_label(age, ax, time_label_loc=None, time_unit='Myr')[source]

Add time label.

Add a time label in the upper left corner of a diagram.

Parameters
agefloat

Age of the stellar object.

axmatplotlib Axes object
time_label_locNone or tuple

Default None, the custom location of the time label in units of the Axes coordinate; (0, 0) is bottom left of the axes, and (1, 1) is top right of the axes

time_unit: str

Unit of the time.

Returns
matplotlib Artist object