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.
2 parents b329c77 + ea4c53c commit 52047a0Copy full SHA for 52047a0
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