hotstepper.Steps.smooth_plot

Steps.smooth_plot(smooth_factor=None, smooth_basis=None, interval=0.01, ax=None, where='post', **kargs)

Plot a smoothed steps function using different parameters and methods.

Parameters
  • smooth_factor (int, float, Optional) – If using the method=’smooth’ option, set the strength of the smoothing to apply.

  • smooth_basis (Basis, Optional) – The :class: Basis to use when calculating the smooth steps function.

  • interval (int, float, Pandas.Timedetla, Optional) – If using method = ‘function’ or ‘smooth’, specify the increment size between step key locations used to calculate the steps function.

  • ax (Matplotlib.Axes, Optional) – The axes to plot this chart onto is already defined.

  • where ({'pre', 'post', Optional}) – How to draw the step plot, this parameter is the same as the Matplotlib where parameter used in the Axes.step plotting function.

  • **kargs – Matplotlib key-value arguments

Returns

A reference to the plot axes object to allow further plotting on the same axes.

Return type

Matplotlib.Axes

Examples

st = Step(5,10,3) + Step(6,weight=2)
ax = st.smooth_plot(smooth_factor=2)
st.plot(ax=ax,color='g')
ax.set_title('Smooth Steps Plot')
../_images/hotstepper-Steps-smooth_plot-1.png