Title: Fix support for empty usetex strings. by anntzer · Pull Request #16410 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix support for empty usetex strings. by anntzer · Pull Request #16410 · matplotlib/matplotlib
X Title: Fix support for empty usetex strings. by anntzer · Pull Request #16410 · matplotlib/matplotlib
Description: Currently, figtext(.5, .5, "%foo", usetex=True) results in an obscure exception (FileNotFoundError: No such file or directory: blah.dvi). Fix that by forcing tex to always generate a page, by inserting at least an empty \hbox{}. Closes #16409. Edit: looks like this shifts some tex strings a tiny bit, but I already have another patch which shifts them more -- specifically, a followup to #16373 which actually gives correct baselines even without using tex.latex.preview. So I'll just wait for that. 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
Open Graph Description: Currently, figtext(.5, .5, "%foo", usetex=True) results in an obscure exception (FileNotFoundError: No such file or directory: blah.dvi). Fix that by forcing tex to always generate a page...
X Description: Currently, figtext(.5, .5, "%foo", usetex=True) results in an obscure exception (FileNotFoundError: No such file or directory: blah.dvi). Fix that by forcing tex to always generat...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/16410
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bffa4db7-dc1c-dac1-98d5-866b7c8d7ae8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A130:166AAB:2B403C5:3AEF607:6A53C03C |
| html-safe-nonce | fb474a31a432795b2e298bc8242e5e6ac48ec9da615d75a310cee7ee637a40d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTMwOjE2NkFBQjoyQjQwM0M1OjNBRUY2MDc6NkE1M0MwM0MiLCJ2aXNpdG9yX2lkIjoiOTE2NDExMjA4OTkzMzEzNTkzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53593f4221a73bfdd1df36ce408968b51a93f222b866e2624e27fc83fd22d08c |
| hovercard-subject-tag | pull_request:371097202 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/16410/files |
| twitter:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| og:image:alt | Currently, figtext(.5, .5, "%foo", usetex=True) results in an obscure exception (FileNotFoundError: No such file or directory: blah.dvi). Fix that by forcing tex to always generate a page... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width