nested_grid_plotter.ticklabels_to_datetime#
- nested_grid_plotter.ticklabels_to_datetime(ax: _AxesBase, initial_datetime: datetime, is_y_axis: bool, step: relativedelta, format: str = '%d-%m-%Y', rotation_degrees: float = 15.0) None[source]#
Convert float ticklabels to datetime.
Added in version 1.2.
- Parameters:
ax (Axes) – The axis for which the transformation is applied.
initial_datetime (datetime) – Date associated with the first data point.
is_y_axis (bool) – Whether to apply the transformation to the y axis.
initial_datetime – Date associated with the first data point.
step (relativedelta) – Unit of time between two data points. The default is “days”.
format (str, optional) – Time format for display. The default is “%d-%m-%Y”.
rotation_degrees (float, optional) – Rotation angle in degrees to apply to ticks labels (in degrees, counterclockwise). The default is 15.0.