Example #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)
Example #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)
Example #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)