Esempio n. 1
0
def test_art3d_deprecated():

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.norm_angle(0.0)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.norm_text_angle(0.0)

    path = mpath.Path(np.empty((0, 2)))

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.path_to_3d_segment(path)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.paths_to_3d_segments([path])

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.path_to_3d_segment_with_codes(path)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.paths_to_3d_segments_with_codes([path])

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.get_colors([], 1)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.zalpha([], [])
Esempio n. 2
0
def test_art3d_deprecated():

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.norm_angle(0.0)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.norm_text_angle(0.0)

    path = mpath.Path(np.empty((0, 2)))

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.path_to_3d_segment(path)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.paths_to_3d_segments([path])

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.path_to_3d_segment_with_codes(path)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.paths_to_3d_segments_with_codes([path])

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.get_colors([], 1)

    with pytest.warns(MatplotlibDeprecationWarning):
        art3d.zalpha([], [])