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 70a55db commit ea4c53cCopy full SHA for ea4c53c
1 file changed
lib/matplotlib/tests/test_backend_pdf.py
@@ -234,9 +234,8 @@ def test_failing_latex(tmpdir):
234
plt.savefig(path)
235
236
237
-def test_empty_rasterised():
+def test_empty_rasterized():
238
# Check that emtpy figures that are rasterised save to pdf files fine
239
- with PdfPages(io.BytesIO()) as pdf:
240
- fig, ax = plt.subplots()
241
- ax.plot([], [], rasterized=True)
242
- fig.savefig(pdf, format="pdf")
+ fig, ax = plt.subplots()
+ ax.plot([], [], rasterized=True)
+ fig.savefig(io.BytesIO(), format="pdf")
0 commit comments