MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _scale_invalid_mask

Function _scale_invalid_mask

lib/mpl_toolkits/mplot3d/art3d.py:100–121  ·  view source on GitHub ↗

Return the mask of points whose coordinates are invalid for the axis scale they live on (e.g. <=0 on a log axis). Parameters ---------- xs, ys, zs : array-like The points to check, in data coordinates. axes : Axes3D The axes whose scales are queried. Re

(xs, ys, zs, axes)

Source from the content-addressed store, hash-verified

98
99
100def _scale_invalid_mask(xs, ys, zs, axes):
101 """
102 Return the mask of points whose coordinates are invalid for the axis
103 scale they live on (e.g. <=0 on a log axis).
104
105 Parameters
106 ----------
107 xs, ys, zs : array-like
108 The points to check, in data coordinates.
109 axes : Axes3D
110 The axes whose scales are queried.
111
112 Returns
113 -------
114 mask : np.ndarray
115 Boolean array, ``True`` where any of x/y/z is out of its scale&#x27;s
116 valid domain.
117 """
118 return np.logical_or.reduce((
119 np.logical_not(axes.xaxis._scale.val_in_range(xs)),
120 np.logical_not(axes.yaxis._scale.val_in_range(ys)),
121 np.logical_not(axes.zaxis._scale.val_in_range(zs))))
122
123
124class Text3D(mtext.Text):

Callers 9

drawMethod · 0.85
drawMethod · 0.85
do_3d_projectionMethod · 0.85
do_3d_projectionMethod · 0.85
do_3d_projectionMethod · 0.85
do_3d_projectionMethod · 0.85
do_3d_projectionMethod · 0.85
do_3d_projectionMethod · 0.85
do_3d_projectionMethod · 0.85

Calls 1

val_in_rangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…