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

Function _viewlim_mask

lib/mpl_toolkits/mplot3d/art3d.py:75–97  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

73
74
75def _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
100def _scale_invalid_mask(xs, ys, zs, axes):

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

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…