()
| 226 | @mpl3d_image_comparison(['contour3d.png'], style='mpl20', |
| 227 | tol=0 if platform.machine() == 'x86_64' else 0.002) |
| 228 | def test_contour3d(): |
| 229 | plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated |
| 230 | fig = plt.figure() |
| 231 | ax = fig.add_subplot(projection='3d') |
| 232 | X, Y, Z = axes3d.get_test_data(0.05) |
| 233 | ax.contour(X, Y, Z, zdir='z', offset=-100, cmap="coolwarm") |
| 234 | ax.contour(X, Y, Z, zdir='x', offset=-40, cmap="coolwarm") |
| 235 | ax.contour(X, Y, Z, zdir='y', offset=40, cmap="coolwarm") |
| 236 | ax.axis(xmin=-40, xmax=40, ymin=-40, ymax=40, zmin=-100, zmax=100) |
| 237 | |
| 238 | |
| 239 | @mpl3d_image_comparison(['contour3d_extend3d.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…