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)
| 98 | |
| 99 | |
| 100 | def _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'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 | |
| 124 | class Text3D(mtext.Text): |
no test coverage detected
searching dependent graphs…