Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/backends/backend_pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,9 @@ def draw_image(self, gc, x, y, im, transform=None):
return

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

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