()
| 2333 | |
| 2334 | |
| 2335 | def test_margins(): |
| 2336 | fig = plt.figure() |
| 2337 | ax = fig.add_subplot(projection='3d') |
| 2338 | ax.margins(0.2) |
| 2339 | assert ax.margins() == (0.2, 0.2, 0.2) |
| 2340 | ax.margins(0.1, 0.2, 0.3) |
| 2341 | assert ax.margins() == (0.1, 0.2, 0.3) |
| 2342 | ax.margins(x=0) |
| 2343 | assert ax.margins() == (0, 0.2, 0.3) |
| 2344 | ax.margins(y=0.1) |
| 2345 | assert ax.margins() == (0, 0.1, 0.3) |
| 2346 | ax.margins(z=0) |
| 2347 | assert ax.margins() == (0, 0.1, 0) |
| 2348 | |
| 2349 | |
| 2350 | def test_margin_getters(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…