Stairs.
divide
(other)¶A binary operator facilitating the division of step functions.
The divisor should cannot be zero-valued anywhere.
Equivalent to self / other. See examples below.
Returns: | new instance representing the result of self / other |
---|---|
Return type: | Stairs |
See also
Examples
>>> stair_list = [s1, s2, s1/(s2+2)]
>>> fig, axes = plt.subplots(nrows=1, ncols=3, figsize=(17,5), sharey=True, sharex=True)
>>> for ax, title, stair_instance in zip(axes, (['s1', 's2', 's1/(s2+2)']), stair_list):
... stair_instance.plot(ax)
... ax.set_title(title)