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. IfNone, plot all metrics indf, assumes one metric is in the dataframe.xlabel (
str) – Name of x-label.show_arrow (
bool) – Whether to show an arrow indicating maximize/minimize.marker (
str|None|list[str|None]) – Marker type for serie values. IfNone, no marker is shown.marker_size (
Optional[float]) – Size of marker. IfNone, 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.ax (
Optional[Axes]) – Optional matplotlib Axes to plot on.