8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99bb88 commit d960f03Copy full SHA for d960f03
lib/matplotlib/tests/test_patches.py
@@ -49,17 +49,19 @@ def test_Polygon_close():
49
50
@image_comparison(baseline_images=['clip_to_bbox'])
51
def test_clip_to_bbox():
52
- plt.figure()
+ fig = plt.figure()
53
54
- ax = plt.axes()
+ ax = fig.add_subplot(111)
55
ax.set_xlim([-18, 20])
56
ax.set_ylim([-150, 100])
57
58
- path = mpath.Path.unit_regular_star(8)
+ star = mpath.Path.unit_regular_star(8)
59
+ path = mpath.Path(star.vertices.copy(), star.codes)
60
path.vertices *= [10, 100]
61
path.vertices -= [5, 25]
62
- path2 = mpath.Path.unit_circle()
63
+ circle = mpath.Path.unit_circle()
64
+ path2 = mpath.Path(circle.vertices.copy(), circle.codes)
65
path2.vertices *= [10, 100]
66
path2.vertices += [10, -25]
67
0 commit comments