Stairs.
invert
()¶Returns a boolean-valued step function indicating where self is zero-valued.
Equivalent to ~*self*
Returns: | A new instance representing where self is zero-valued |
---|---|
Return type: | Stairs |
See also
Examples
>>> stair_list = [s2, ~s2]
>>> fig, axes = plt.subplots(nrows=1, ncols=2, figsize=(12,5), sharey=True, sharex=True)
>>> for ax, title, stair_instance in zip(axes, ("s2", "~s2"), stair_list):
... stair_instance.plot(ax)
... ax.set_title(title)