seqme.plot_bar

Contents

seqme.plot_bar#

seqme.plot_bar(df, metric=None, *, color='#68d6bc', xticks_rotation=45, ylim=None, show_arrow=True, show_deviation=True, figsize=(4, 3), ax=None)[source]#

Plot a bar chart for a given metric 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 (str) – Bar color. Default is teal.

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

  • ylim (Optional[tuple[float, float]]) – y-axis limits (optional).

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

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

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

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