Skip to content

Commit e5ba6a4

Browse files
committed
updating test to reflect changes
1 parent d460c90 commit e5ba6a4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/matplotlib/tests/test_lines.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,12 @@ def test_downsample_lines():
199199

200200
line = mlines.Line2D(x, y, downsample=True)
201201

202-
fig, ax = plt.subplots()
203-
204-
# Adjust size of figure to ensure downsampling occurs
205-
fig.set_dpi(1)
206-
fig.set_size_inches([2, 1])
202+
_, ax = plt.subplots()
207203

208204
ax.add_line(line)
209205

210-
tpath, affine = line._get_transformed_path().get_transformed_path_and_affine()
206+
transf_path = self._get_transformed_path()
207+
tpath, affine = transf_path.get_transformed_path_and_affine()
211208
down_verts = line._downsample_path(tpath, affine).vertices
212209

213210
expected_down_verts = np.array([

0 commit comments

Comments
 (0)