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

Function test_bar3d

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

Source from the content-addressed store, hash-verified

140
141@mpl3d_image_comparison(['bar3d.png'], style='mpl20')
142def test_bar3d():
143 fig = plt.figure()
144 ax = fig.add_subplot(projection='3d')
145 for c, z in zip(['r', 'g', 'b', 'y'], [30, 20, 10, 0]):
146 xs = np.arange(20)
147 ys = np.arange(20)
148 cs = [c] * len(xs)
149 cs[0] = 'c'
150 ax.bar(xs, ys, zs=z, zdir='y', align='edge', color=cs, alpha=0.8)
151
152
153def test_bar3d_colors():

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
add_subplotMethod · 0.80
barMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…