mask_or(m1, m2, copy=False, shrink=True)
The result may be a view on :None:None:`m1`
or :None:None:`m2`
if the other is :None:None:`nomask`
(i.e. False).
Input masks.
If copy is False and one of the inputs is :None:None:`nomask`
, return a view of the other input mask. Defaults to False.
Whether to shrink the output to :None:None:`nomask`
if all its values are False. Defaults to True.
If :None:None:`m1`
and :None:None:`m2`
have different flexible dtypes.
The result masks values that are masked in either :None:None:`m1`
or :None:None:`m2`
.
Combine two masks with the logical_or
operator.
>>> m1 = np.ma.make_mask([0, 1, 1, 0])See :
... m2 = np.ma.make_mask([1, 0, 0, 0])
... np.ma.mask_or(m1, m2) array([ True, True, True, False])
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them