ibfoamrig.plot.plot_profile#

ibfoamrig.plot.plot_profile(data, x, y, *, labels=None, ax=None, **line_kwargs)[source]#

Plots one column against another for each entry of data.

Each entry becomes one line, labelled with its key in the legend. Rows are plotted in order of x. Colors, markers and line styles follow the active matplotlib style, e.g. plt.style.use("ibfoamrig.plot.profile").

Parameters:
Returns:

The axes drawn on.

Raises:
  • ValueError – If data is empty.

  • KeyError – If a frame lacks x or y, or labels names an unknown preset.

Return type:

Axes