MCPcopy
hub / github.com/matplotlib/matplotlib / test_bar3d_notshaded

Function test_bar3d_notshaded

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

Source from the content-addressed store, hash-verified

185@mpl3d_image_comparison(['bar3d_notshaded.png'], style='mpl20',
186 tol=0.01 if parse_version(np.version.version).major < 2 else 0)
187def test_bar3d_notshaded():
188 fig = plt.figure()
189 ax = fig.add_subplot(projection='3d')
190 x = np.arange(4)
191 y = np.arange(5)
192 x2d, y2d = np.meshgrid(x, y)
193 x2d, y2d = x2d.ravel(), y2d.ravel()
194 z = x2d + y2d
195 ax.bar3d(x2d, y2d, x2d * 0, 1, 1, z, shade=False)
196 fig.canvas.draw()
197
198
199def test_bar3d_lightsource():

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
add_subplotMethod · 0.80
bar3dMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…