(fig_test, fig_ref)
| 2380 | |
| 2381 | @check_figures_equal() |
| 2382 | def test_text_3d(fig_test, fig_ref): |
| 2383 | ax = fig_ref.add_subplot(projection="3d") |
| 2384 | txt = Text(0.5, 0.5, r'Foo bar $\int$') |
| 2385 | art3d.text_2d_to_3d(txt, z=1) |
| 2386 | ax.add_artist(txt) |
| 2387 | assert txt.get_position_3d() == (0.5, 0.5, 1) |
| 2388 | |
| 2389 | ax = fig_test.add_subplot(projection="3d") |
| 2390 | t3d = art3d.Text3D(0.5, 0.5, 1, r'Foo bar $\int$') |
| 2391 | ax.add_artist(t3d) |
| 2392 | assert t3d.get_position_3d() == (0.5, 0.5, 1) |
| 2393 | |
| 2394 | |
| 2395 | def test_draw_single_lines_from_Nx1(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…