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

Function test_scatter3d

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

Source from the content-addressed store, hash-verified

403
404@mpl3d_image_comparison(['scatter3d.png'], style='mpl20')
405def test_scatter3d():
406 fig = plt.figure()
407 ax = fig.add_subplot(projection='3d')
408 ax.scatter(np.arange(10), np.arange(10), np.arange(10),
409 c='r', marker='o')
410 x = y = z = np.arange(10, 20)
411 ax.scatter(x, y, z, c='b', marker='^')
412 z[-1] = 0 # Check that scatter() copies the data.
413 # Ensure empty scatters do not break.
414 ax.scatter([], [], [], c='r', marker='X')
415
416
417@mpl3d_image_comparison(['scatter3d_color.png'], style='mpl20')

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
add_subplotMethod · 0.80
scatterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…