|
7 | 7 |
|
8 | 8 |
|
9 | 9 | from matplotlib import ( |
10 | | - collections, path, patheffects, pyplot as plt, transforms as mtransforms, |
| 10 | + collections, patheffects, pyplot as plt, transforms as mtransforms, |
11 | 11 | rcParams, rc_context) |
12 | 12 | from matplotlib.backends.backend_agg import RendererAgg |
13 | 13 | from matplotlib.figure import Figure |
@@ -56,7 +56,7 @@ def test_large_single_path_collection(): |
56 | 56 | # applied. |
57 | 57 | f, ax = plt.subplots() |
58 | 58 | collection = collections.PathCollection( |
59 | | - [path.Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])]) |
| 59 | + [Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])]) |
60 | 60 | ax.add_artist(collection) |
61 | 61 | ax.set_xlim(10**-3, 1) |
62 | 62 | plt.savefig(buff) |
@@ -270,7 +270,7 @@ def test_webp_alpha(): |
270 | 270 |
|
271 | 271 | def test_draw_path_collection_error_handling(): |
272 | 272 | fig, ax = plt.subplots() |
273 | | - ax.scatter([1], [1]).set_paths(path.Path([(0, 1), (2, 3)])) |
| 273 | + ax.scatter([1], [1]).set_paths(Path([(0, 1), (2, 3)])) |
274 | 274 | with pytest.raises(TypeError): |
275 | 275 | fig.canvas.draw() |
276 | 276 |
|
|
0 commit comments