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. IfNone, plot all metrics indf.n_decimals (
int|list[int]) – Decimal precision for formatting metric values.xticks_fontsize (
Optional[float]) – Font size of x-ticks. IfNone, 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. IfNone, do not show.zero_width (
float|None) – Width of the zero value indicator. IfNone, do not show.xpad (
float) – Left and right padding of axes.legend_loc (
Union[Literal['right margin'],str,None]) – Legend location.ax (
Optional[Axes]) – Optional matplotlib Axes to plot on.