Пример #1
0
def test_proj3d_deprecated():
    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.line2d([0, 1], [0, 1])

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.line2d_dist([0, 1, 3], [0, 1])

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.mod([1, 1, 1])

    vec = np.arange(4)
    M = np.ones((4, 4))

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.proj_transform_vec(vec, M)

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.proj_transform_vec_clip(vec, M)

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.vec_pad_ones(np.ones(3), np.ones(3), np.ones(3))

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.proj_trans_clip_points(np.ones((4, 3)), M)
Пример #2
0
def test_proj3d_deprecated():
    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.line2d([0, 1], [0, 1])

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.line2d_dist([0, 1, 3], [0, 1])

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.mod([1, 1, 1])

    vec = np.arange(4)
    M = np.ones((4, 4))

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.proj_transform_vec(vec, M)

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.proj_transform_vec_clip(vec, M)

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.vec_pad_ones(np.ones(3), np.ones(3), np.ones(3))

    with pytest.warns(MatplotlibDeprecationWarning):
        proj3d.proj_trans_clip_points(np.ones((4, 3)), M)