Esempio n. 1
0
def test_3d_functions(renderer):
    """Test figure management functions."""
    fig = renderer.create_3d_figure((300, 300))
    renderer._check_figure(fig)
    renderer.set_3d_view(figure=fig)
    renderer.set_3d_title(figure=fig, title='foo')
    renderer._close_all()
Esempio n. 2
0
def test_3d_functions(renderer):
    """Test figure management functions."""
    fig = renderer.create_3d_figure((300, 300))
    wrap_renderer = renderer.backend._Renderer(fig=fig)
    wrap_renderer.sphere(np.array([0., 0., 0.]), 'w', 1.)
    renderer.backend._check_3d_figure(fig)
    renderer.set_3d_view(figure=fig,
                         azimuth=None,
                         elevation=None,
                         focalpoint=(0., 0., 0.),
                         distance=None)
    renderer.set_3d_title(figure=fig, title='foo')
    renderer.backend._take_3d_screenshot(figure=fig)
    renderer.close_3d_figure(fig)
    renderer.close_all_3d_figures()