seqme.plot_parallel

Contents

seqme.plot_parallel#

seqme.plot_parallel(df, metrics=None, *, n_decimals=2, xticks_fontsize=None, xticks_rotation=90, yticks_fontsize=8, show_yticks=True, show_arrow=True, arrow_size=None, zero_width=0.25, xpad=0.25, legend_loc='right margin', figsize=(5, 3), ax=None)[source]#

Plot a parallel coordinates plot where each coordinate is a metric.

Parameters:
  • df (DataFrame) – Metric dataframe.

  • metrics (Optional[list[str]]) – Which metrics to plot. If None, plot all metrics in df.

  • n_decimals (int | list[int]) – Decimal precision for formatting metric values.

  • xticks_fontsize (Optional[float]) – Font size of x-ticks. If None, selects default fontsize.

  • xticks_rotation (float) – Rotation angle for x-axis tick labels.

  • yticks_fontsize (float) – Font size of y-ticks.

  • show_yticks (bool) – Whether to you show the minimum and maximum value on the y-axis for each metric.

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

  • arrow_size (Optional[float]) – Size of arrows displayed in the plot. If None, do not show.

  • zero_width (float | None) – Width of the zero value indicator. If None, do not show.

  • xpad (float) – Left and right padding of axes.

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