Stairs.
negate
()¶An operator which produces a new Stairs instance representing the multiplication of the step function by -1.
Equivalent to -self. See examples below.
Returns: | new instance representing the result of -self |
---|---|
Return type: | Stairs |
See also
Examples
>>> stair_list = [s1, -s1]
>>> fig, axes = plt.subplots(nrows=1, ncols=2, figsize=(17,5), sharey=True, sharex=True)
>>> for ax, title, stair_instance in zip(axes, (['s1', '-s1']), stair_list):
... stair_instance.plot(ax)
... ax.set_title(title)