Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b25263e

Browse files
authored
Merge pull request #20259 from meeseeksmachine/auto-backport-of-pr-20248-on-v3.4.x
Backport PR #20248 on branch v3.4.x (Replace pgf image-streaming warning by error.)
2 parents 86acc0c + 1b8b060 commit b25263e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,9 @@ def draw_image(self, gc, x, y, im, transform=None):
635635
return
636636

637637
if not os.path.exists(getattr(self.fh, "name", "")):
638-
_api.warn_external(
638+
raise ValueError(
639639
"streamed pgf-code does not support raster graphics, consider "
640-
"using the pgf-to-pdf option.")
640+
"using the pgf-to-pdf option")
641641

642642
# save the images to png files
643643
path = pathlib.Path(self.fh.name)

0 commit comments

Comments
 (0)