Commit 9ff8910
committed
Replace pgf image-streaming warning by error.
Saving a pgf file with images to an in-memory buffer
(`import io; imshow([[1, 2]]); savefig(io.BytesIO(), format="pgf")`)
currently warns that this is not possible (because the image needs to be
written to the filesyste), but in fact an exception gets raised
immediately after when trying to construct `Path(self.fh.name)`, so we
may as well replace the original warning by an exception.1 parent de2ea8b commit 9ff8910
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| |||
0 commit comments