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

Function test_lines3d

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:330–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329@mpl3d_image_comparison(['lines3d.png'], style='mpl20')
330def test_lines3d():
331 fig = plt.figure()
332 ax = fig.add_subplot(projection='3d')
333 theta = np.linspace(-4 * np.pi, 4 * np.pi, 100)
334 z = np.linspace(-2, 2, 100)
335 r = z ** 2 + 1
336 x = r * np.sin(theta)
337 y = r * np.cos(theta)
338 ax.plot(x, y, z)
339
340
341@check_figures_equal()

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
add_subplotMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…