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.
There was an error while loading. Please reload this page.
1 parent ac9215b commit 6deb323Copy full SHA for 6deb323
1 file changed
lib/matplotlib/tests/test_agg.py
@@ -134,15 +134,13 @@ def report_memory(i):
134
def test_marker_with_nan():
135
# This creates a marker with nans in it, which was segfaulting the
136
# Agg backend (see #3722)
137
- fig = Figure()
+ fig, ax = plt.subplots(1)
138
steps = 1000
139
data = np.arange(steps)
140
- ax = fig.add_subplot(1, 1, 1)
141
ax.semilogx(data)
142
ax.fill_between(data, data*0.8, data*1.2)
143
buf = io.BytesIO()
144
- fig.savefig(buf)
145
-
+ fig.savefig(buf, format='png')
146
147
148
if __name__ == "__main__":
0 commit comments