()
| 301 | |
| 302 | @mpl3d_image_comparison(['tricontour.png'], tol=0.02, style='mpl20') |
| 303 | def test_tricontour(): |
| 304 | plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated |
| 305 | fig = plt.figure() |
| 306 | |
| 307 | np.random.seed(19680801) |
| 308 | x = np.random.rand(1000) - 0.5 |
| 309 | y = np.random.rand(1000) - 0.5 |
| 310 | z = -(x**2 + y**2) |
| 311 | |
| 312 | ax = fig.add_subplot(1, 2, 1, projection='3d') |
| 313 | ax.tricontour(x, y, z) |
| 314 | ax = fig.add_subplot(1, 2, 2, projection='3d') |
| 315 | ax.tricontourf(x, y, z) |
| 316 | |
| 317 | |
| 318 | def test_contour3d_1d_input(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…