Title: Request: for non-interactive backends make fig.canvas.draw() force the render · Issue #16558 · matplotlib/matplotlib · GitHub
Open Graph Title: Request: for non-interactive backends make fig.canvas.draw() force the render · Issue #16558 · matplotlib/matplotlib
X Title: Request: for non-interactive backends make fig.canvas.draw() force the render · Issue #16558 · matplotlib/matplotlib
Description: Bug report Bug summary https://discourse.matplotlib.org/t/fig-draw-renderer-vs-fig-canvas-draw/20890 When using a non-interactive backend (specifically the PGF backend), I noticed that fig.canvas.draw() isn’t equivalent to fig.draw(fig.c...
Open Graph Description: Bug report Bug summary https://discourse.matplotlib.org/t/fig-draw-renderer-vs-fig-canvas-draw/20890 When using a non-interactive backend (specifically the PGF backend), I noticed that fig.canvas.d...
X Description: Bug report Bug summary https://discourse.matplotlib.org/t/fig-draw-renderer-vs-fig-canvas-draw/20890 When using a non-interactive backend (specifically the PGF backend), I noticed that fig.canvas.d...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16558
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request: for non-interactive backends make fig.canvas.draw() force the render","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\nhttps://discourse.matplotlib.org/t/fig-draw-renderer-vs-fig-canvas-draw/20890\r\n\r\nWhen using a non-interactive backend (specifically the PGF backend), I noticed that fig.canvas.draw() isn’t equivalent to fig.draw(fig.canvas.get_renderer()). Can anyone please explain the difference between these two approaches?\r\n\r\n(this has been answered) Please see the explanation by @tacaswell on discourse.\r\n\r\nReproducing the last part of the response since it is potentially an actionable item \r\n\u003e I suspect that we should add code to the draw methods of the non-interactive backends to force the render, but that needs a bit of thought to make sure we don’t have any unintended consequences of that.\r\n","author":{"url":"https://github.com/pharshalp","@type":"Person","name":"pharshalp"},"datePublished":"2020-02-19T19:05:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/16558/matplotlib/issues/16558"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b78a021-07ad-6e4e-77bf-949232ae5025 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FDE:185C34:1A4D567:23F0F56:6A536C33 |
| html-safe-nonce | 30c3b00f183884dcbd847f960979d468ef6d7b85ac76e16555ca582df6846177 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkRFOjE4NUMzNDoxQTRENTY3OjIzRjBGNTY6NkE1MzZDMzMiLCJ2aXNpdG9yX2lkIjoiNDczNzY0MjI3NTUzODE2ODg4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 62e9f79de2f66953a6e8addefb9ce40a008957dd9053e92ac24537c94849340c |
| hovercard-subject-tag | issue:567779390 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/matplotlib/matplotlib/16558/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3025c0ffbb03dd46f65783547e1d453aa2857e2c7fa94c0ba256e13559bcd486/matplotlib/matplotlib/issues/16558 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3025c0ffbb03dd46f65783547e1d453aa2857e2c7fa94c0ba256e13559bcd486/matplotlib/matplotlib/issues/16558 |
| og:image:alt | Bug report Bug summary https://discourse.matplotlib.org/t/fig-draw-renderer-vs-fig-canvas-draw/20890 When using a non-interactive backend (specifically the PGF backend), I noticed that fig.canvas.d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pharshalp |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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