hotstepper.Steps.histogram_plot

Steps.histogram_plot(bins=20, axis=0, precision=2, offset=None, ax=None, label_style='bins', **kargs)

Plot a histogram of the cummulative step values.

Parameters
  • bins (int, array of ints, Optional) – How many bins to partition the data into or an array of the specific bin values to partition the data into.

  • axis (int, Optional) – The data axis to partition into the bins. axis = 0 will parition the y values axis = 1 will partition the x values

  • precision (int, Optional) – The number of digits the bins labels will display.

  • ax (Matplotlib.Axes) – The plot axis to create the plot on if being created externally.

  • offset (Timedelta, Optional) – The delta time precision to use when binning the data if using axis = 1 and the data type is datetime like.

  • label_style (str, Optional) – The x-axis label style to use on the plot, the available styles are; ‘bins’ -> [8.3, 9.4), number of digits is set by setting the precision paramter. ‘value’ -> 8.8, the lower inclusion value of the bin range will be used as the label.

  • **kargs – Matplotlib key-value paramters to pass to the plot.

Returns

Return type

Matplotlib.Axes