Beispiel #1
0
def test_plot_arrows():
    cent = np.random.random((100, 3))
    direction = np.random.random((100, 3))
    cpos, img = pyvista.plot_arrows(cent,
                                    direction,
                                    off_screen=True,
                                    screenshot=True)
    assert np.any(img)
Beispiel #2
0
def test_plot_arrows():
    cent = np.random.random((100, 3))
    direction = np.random.random((100, 3))
    pyvista.plot_arrows(cent, direction, off_screen=OFF_SCREEN)
Beispiel #3
0
def test_plot_arrows():
    cent = np.array([[0, 0, 0], [1, 0, 0]])
    direction = np.array([[1, 1, 1], [-1, -1, -1]])
    pyvista.plot_arrows(cent,
                        direction,
                        before_close_callback=verify_cache_image)