plot_profile#

protopipe.benchmarks.plot_profile(ax, data, xcol, ycol, n_xbin, x_range, logx=False, **kwargs)[source]#

Plot a profiled histogram.

Parameters
ax: `matplotlib.axes.Axes`

Empty or existing axes

data: `pandas.DataFrame``

A dataframe with at least 2 columns

xcol: str

Name of the column to use as X coordinate

ycol: str

Name of the column to use as Y coordinate

n_xbin: int

Number of bins in the X axis

x_range: list

Lower and upper limit of the X data to use

Returns
ax: matplotlib.axes.Axes

Axes filled by the plot