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

Function test_zordered_error

lib/mpl_toolkits/mplot3d/tests/test_art3d.py:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def test_zordered_error():
66 # Smoke test for https://github.com/matplotlib/matplotlib/issues/26497
67 lc = [(np.fromiter([0.0, 0.0, 0.0], dtype="float"),
68 np.fromiter([1.0, 1.0, 1.0], dtype="float"))]
69 pc = [np.fromiter([0.0, 0.0], dtype="float"),
70 np.fromiter([0.0, 1.0], dtype="float"),
71 np.fromiter([1.0, 1.0], dtype="float")]
72
73 fig = plt.figure()
74 ax = fig.add_subplot(projection="3d")
75 ax.add_collection(Line3DCollection(lc), autolim="_datalim_only")
76 ax.scatter(*pc, visible=False)
77 plt.draw()
78
79
80def test_all_points_on_plane():

Callers

nothing calls this directly

Calls 6

Line3DCollectionClass · 0.90
figureMethod · 0.80
add_subplotMethod · 0.80
add_collectionMethod · 0.80
scatterMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…