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

Function test_culling

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:1339–1350  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

1337
1338@check_figures_equal()
1339def test_culling(fig_test, fig_ref):
1340 xmins = (-100, -50)
1341 for fig, xmin in zip((fig_test, fig_ref), xmins):
1342 ax = fig.add_subplot(projection='3d')
1343 n = abs(xmin) + 1
1344 xs = np.linspace(0, xmin, n)
1345 ys = np.ones(n)
1346 zs = np.zeros(n)
1347 ax.plot(xs, ys, zs, 'k')
1348
1349 ax.set(xlim=(-5, 5), ylim=(-5, 5), zlim=(-5, 5))
1350 ax.view_init(5, 180, 0)
1351
1352
1353def test_axes3d_focal_length_checks():

Callers

nothing calls this directly

Calls 4

add_subplotMethod · 0.80
view_initMethod · 0.80
plotMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…