seqme.plot_scatter

Contents

seqme.plot_scatter#

seqme.plot_scatter(df, metrics=None, *, color=None, show_arrow=True, marker='o', marker_size=None, linestyle='--', linewidth=1.0, show_deviation=True, deviation_alpha=0.5, deviation_linewidth=1.0, legend_loc='right margin', figsize=(4, 3), ax=None)[source]#

Plot a scatter plot for two metrics with optional error rectangles or bars.

Parameters:
  • df (DataFrame) – Metric dataframe.

  • metrics (Union[list[str], tuple[str, str], None]) – The name of the metrics to plot. If None, plot all metrics in df, assumes two metrics are in the dataframe.

  • color (Optional[list[str]]) – Circle color.

  • show_arrow (bool) – Whether to show an arrow indicating maximize/minimize in the x- and y-labels.

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

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

  • linestyle (str | None) – Series linestyle. If None, dont show connecting lines.

  • linewidth (float) – Line width of connected points.

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

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

  • deviation_linewidth (float) – Deviation line width.

  • 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.