MCPcopy
hub / github.com/matplotlib/matplotlib / test_errorbar3d

Function test_errorbar3d

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:1728–1740  ·  view source on GitHub ↗

Tests limits, color styling, and legend for 3D errorbars.

()

Source from the content-addressed store, hash-verified

1726@mpl3d_image_comparison(['errorbar3d.png'], style='mpl20',
1727 tol=0.015 if sys.platform == 'darwin' else 0)
1728def test_errorbar3d():
1729 """Tests limits, color styling, and legend for 3D errorbars."""
1730 fig = plt.figure()
1731 ax = fig.add_subplot(projection='3d')
1732
1733 d = [1, 2, 3, 4, 5]
1734 e = [.5, .5, .5, .5, .5]
1735 ax.errorbar(x=d, y=d, z=d, xerr=e, yerr=e, zerr=e, capsize=3,
1736 zuplims=[False, True, False, True, True],
1737 zlolims=[True, False, False, True, False],
1738 yuplims=True,
1739 ecolor='purple', label='Error lines')
1740 ax.legend()
1741
1742
1743@image_comparison(['stem3d.png'], style='mpl20',

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
add_subplotMethod · 0.80
errorbarMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…