suboptimumg.loganalysis.plotting#

Generalized time-series and distance-series logging/plotting.

suboptimumg.loganalysis.plotting.plot_log(df, columns, stacked=True, domain='time', time_col='time_s', distance_col='distance', title=None, height_per_subplot=250, max_display_hz=100.0)[source]#

General-purpose log plotting function.

Parameters:
  • df (pd.DataFrame) – The log DataFrame.

  • columns (list[str]) – Column names to plot.

  • stacked (bool) – True -> one subplot per column (shared x-axis). False -> all traces on a single plot.

  • domain (str) – "time" -> x-axis is time_col. "distance" -> x-axis is distance_col.

  • time_col (str) – Column name for time. If the DataFrame index is named time_s, it is used automatically when time_col is not found as a column.

  • distance_col (str) – Column name for distance.

  • title (str or None) – Figure title. Defaults to a generated summary.

  • height_per_subplot (int) – Pixel height per subplot row (only used when stacked=True).

  • max_display_hz (float) – Target display sample rate for naive downsampling. 0 or None disables downsampling.

Return type:

go.Figure