seqme.plot_line

Contents

seqme.plot_line#

seqme.plot_line(df, metric=None, *, color=None, xlabel='Iteration', linestyle='-', show_arrow=True, marker='x', marker_size=None, show_deviation=True, deviation_alpha=0.4, legend_loc='right margin', figsize=(4, 3), ax=None)[source]#

Plot a series for a given metric across multiple iterations/steps with optional error bars.

Parameters:
  • df (DataFrame) – Metric dataframe.

  • metric (Optional[str]) – The name of the metric to plot. If None, plot all metrics in df, assumes one metric is in the dataframe.

  • color (Optional[list[str]]) – Color for each series.

  • xlabel (str) – Name of x-label.

  • linestyle (str | list[str]) – Series linestyle.

  • show_arrow (bool) – Whether to show an arrow indicating maximize/minimize.

  • marker (str | None | list[str | None]) – Marker type for serie values. If None, no marker is shown.

  • marker_size (Optional[float]) – Size of marker. If None, auto-selects size.

  • show_deviation (bool) – Whether to the plot deviation if available.

  • deviation_alpha (float) – opacity level of deviation intervals.

  • legend_loc (Union[Literal['right margin'], str, None]) – Legend location.

  • figsize (tuple[float, float]) – Size of the figure.

  • ax (Optional[Axes]) – Optional matplotlib Axes to plot on.