Tests limits, color styling, and legend for 3D errorbars.
()
| 1726 | @mpl3d_image_comparison(['errorbar3d.png'], style='mpl20', |
| 1727 | tol=0.015 if sys.platform == 'darwin' else 0) |
| 1728 | def 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', |
nothing calls this directly
no test coverage detected
searching dependent graphs…