8000 Restart pgf's latex instance after bad latex inputs. by anntzer · Pull Request #15969 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Restart pgf's latex instance after bad latex inputs. #15969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2019

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Dec 17, 2019

... and also move the warning about pgf-to-stream not supporting raster
images to when actually outputting a raster image (otherwise the warning
is spurious, and affects e.g. test_tex_restart_after_error).

Closes #15968.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -276,3 +277,14 @@ def test_pdf_pages_lualatex():
pdf.savefig(fig)

assert pdf.get_pagecount() == 2


def test_tex_restart_after_error():
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to add

@needs_xelatex
@pytest.mark.backend('pgf')

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only the first one (the backend will be autoswitched anyways), thanks.

... and also move the warning about pgf-to-stream not supporting raster
images to when actually outputting a raster image (otherwise the warning
is spurious, and affects e.g. test_tex_restart_after_error).
Copy link
@veprbl veprbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the issue for me

@jklymak jklymak merged commit 3c67db3 into matplotlib:master Dec 19, 2019
@anntzer anntzer deleted the restart-pgf branch December 19, 2019 17:11
@veprbl
Copy link
veprbl commented Dec 20, 2019

Thank you all for working on this!

@anntzer
Copy link
Contributor Author
anntzer commented Dec 20, 2019

You're welcome, thanks for pointing out the issue :)

@QuLogic QuLogic added this to the v3.3.0 milestone Dec 24, 2019
@QuLogic
Copy link
Member
QuLogic commented Mar 7, 2020

This is being backported in the above PR.

@QuLogic QuLogic modified the milestones: v3.3.0, v3.2.1 Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pgf backend: getting stuck with "BrokenPipeError: [Errno 32] Broken pipe"
5 participants
0