コード例 #1
0
ファイル: test_mplot3d.py プロジェクト: anntzer/matplotlib
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([], [])
コード例 #2
0
ファイル: test_mplot3d.py プロジェクト: zjor/matplotlib
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([], [])