Stairs.
resample
(x, how='right', aggfunc=None, window=(0, 0), lower_how='right', upper_how='left')¶Evaluates the value of the step function at one, or more, points and creates a new Stairs instance whose step changes occur at a subset of these points. The new instance and self have the same values when evaluated at x.
Parameters: |
|
---|---|
Returns: | |
Return type: |
See also
staircase.resample()
Examples
>>> stair_list = [s1, s1.resample([1.5,2.5,4,4.5])]
>>> fig, axes = plt.subplots(nrows=1, ncols=2, figsize=(12,5), sharey=True, sharex=True)
>>> for ax, title, stair_instance in zip(axes, ("s1", "s1 resampled"), stair_list):
... stair_instance.plot(ax)
... ax.set_title(title)