staircase.Stairs.eq

Stairs.eq(other)

Returns a boolean-valued step function indicating where self is equal to other.

Equivalent to self == other. See examples below.

Returns:A new instance representing where self == other
Return type:Stairs

Examples

>>> stair_list = [s1, s2, s1 == s2]
>>> 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"), stair_list):
...     stair_instance.plot(ax)
...     ax.set_title(title)
../_images/staircase-Stairs-eq-1.png