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:
data (Mapping[str, DataFrame]) – Frames by label, e.g. by case label.
x (str) – Column on the horizontal axis.
y (str) – Column on the vertical axis.
labels (str | AxisLabels | None) – A preset name or
AxisLabels, applied after the defaults.ax (Axes | None) – Axes to draw on. If None, a new figure is created.
**line_kwargs (Any) – Passed to
matplotlib.axes.Axes.plotfor every line.
- Returns:
The axes drawn on.
- Raises:
ValueError – If
datais empty.KeyError – If a frame lacks
xory, orlabelsnames an unknown preset.
- Return type: