Skip to content

Allow use of usetex for only some artists in PS output. #10170

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

Closed
wants to merge 1 commit into from

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 5, 2018

Previously, the PS backend would initialize certain usetex related
attributes based on rcParams["text.usetex"], causing crashes if the
rcParam is unset but a single artist sets usetex=True.

Improved version of #8329, without touching global state. I believe popping usetex from the text kwargs is not necessary as it should be handled by the t.update(kwargs) call.

Closes #7741.

edit: hum, text doesn't appear at all. probably we need to keep track of whether the renderer has any elements that use usetex and run everything through _print_figure_tex in that case. closing for now.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

Previously, the PS backend would initialize certain usetex related
attributes based on rcParams["text.usetex"], causing crashes if the
rcParam is unset but a single artist sets usetex=True.
@anntzer anntzer self-assigned this Jan 5, 2018
@anntzer anntzer closed this Jan 5, 2018
@anntzer anntzer deleted the ps-partial-usetex branch April 28, 2020 10:58
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.

Support partial usetex in ps output
1 participant