Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0b5550 commit dcb9d71Copy full SHA for dcb9d71
2 files changed
lib/matplotlib/tests/test_agg.py
@@ -75,10 +75,10 @@ def test_marker_with_nan():
75
76
def test_long_path():
77
buff = io.BytesIO()
78
-
79
- fig, ax = plt.subplots()
80
- np.random.seed(0)
81
- points = np.random.rand(70000)
+ fig = Figure()
+ ax = fig.subplots()
+ points = np.ones(100_000)
+ points[::2] *= -1
82
ax.plot(points)
83
fig.savefig(buff, format='png')
84
lib/matplotlib/tests/test_simplification.py
@@ -305,8 +305,8 @@ def test_start_with_moveto():
305
306
def test_throw_rendering_complexity_exceeded():
307
plt.rcParams['path.simplify'] = False
308
- xx = np.arange(200000)
309
- yy = np.random.rand(200000)
+ xx = np.arange(2_000_000)
+ yy = np.random.rand(2_000_000)
310
yy[1000] = np.nan
311
312
fig, ax = plt.subplots()
0 commit comments