Return the mask of the points outside the axes view limits. Parameters ---------- xs, ys, zs : array-like The points to mask. These should be in data coordinates. axes : Axes3D The axes to use for the view limits. Returns ------- mask : np.array
(xs, ys, zs, axes)
| 73 | |
| 74 | |
| 75 | def _viewlim_mask(xs, ys, zs, axes): |
| 76 | """ |
| 77 | Return the mask of the points outside the axes view limits. |
| 78 | |
| 79 | Parameters |
| 80 | ---------- |
| 81 | xs, ys, zs : array-like |
| 82 | The points to mask. These should be in data coordinates. |
| 83 | axes : Axes3D |
| 84 | The axes to use for the view limits. |
| 85 | |
| 86 | Returns |
| 87 | ------- |
| 88 | mask : np.array |
| 89 | The mask of the points as a bool array. |
| 90 | """ |
| 91 | mask = np.logical_or.reduce((xs < axes.xy_viewLim.xmin, |
| 92 | xs > axes.xy_viewLim.xmax, |
| 93 | ys < axes.xy_viewLim.ymin, |
| 94 | ys > axes.xy_viewLim.ymax, |
| 95 | zs < axes.zz_viewLim.xmin, |
| 96 | zs > axes.zz_viewLim.xmax)) |
| 97 | return mask |
| 98 | |
| 99 | |
| 100 | def _scale_invalid_mask(xs, ys, zs, axes): |
no outgoing calls
no test coverage detected
searching dependent graphs…