Title: Write canonical example of how to use Matplotlib inside a webserver · Issue #12628 · matplotlib/matplotlib · GitHub
Open Graph Title: Write canonical example of how to use Matplotlib inside a webserver · Issue #12628 · matplotlib/matplotlib
X Title: Write canonical example of how to use Matplotlib inside a webserver · Issue #12628 · matplotlib/matplotlib
Description: As shown by #11094 #12612 matplotlib is used inside of webservers to dynamically serve plots. The example should show: importance of picking a non-GUI backend (both by setting the backend and explicitly by not using pyplot). Given that t...
Open Graph Description: As shown by #11094 #12612 matplotlib is used inside of webservers to dynamically serve plots. The example should show: importance of picking a non-GUI backend (both by setting the backend and expli...
X Description: As shown by #11094 #12612 matplotlib is used inside of webservers to dynamically serve plots. The example should show: importance of picking a non-GUI backend (both by setting the backend and expli...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12628
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Write canonical example of how to use Matplotlib inside a webserver","articleBody":"As shown by #11094 #12612 matplotlib is used inside of webservers to dynamically serve plots. The example should show:\r\n\r\n 1) importance of picking a non-GUI backend (both by setting the backend and explicitly by not using pyplot). Given that these servers are multi-threaded, not using pyplot at all may be the best option to avoid any coupling between workers via pyplot and memory leaks due to pyplot holding references to figures forever. Should probably show use of `new_figure_manager`\r\n 2) saving to a bytesIO buffer to avoid disk\r\n 2) png, svg, and pdf\r\n 3) be applicable to both django and flask (not sure off the top of my head what the differences are), bonus points for cherrypy, aiohttp, tornado, and pyramid\r\n ","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2018-10-25T12:22:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/12628/matplotlib/issues/12628"}
| 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:bb977c13-5492-0e5c-8115-8ea0ee533319 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D714:33E60B:32AC25D:451FB33:6A53EBD9 |
| html-safe-nonce | d54471d70d4bfd17246c2fba7c41e2b71d9134e76e34008795f3f44cb943691a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzE0OjMzRTYwQjozMkFDMjVEOjQ1MUZCMzM6NkE1M0VCRDkiLCJ2aXNpdG9yX2lkIjoiODE1MDUyNTc0MTA4OTY4MDM0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a36aa0e63cc809ea0c30932ebdbd4b76cce167c9db5551a09cc8121bce1f1600 |
| hovercard-subject-tag | issue:373920028 |
| 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/12628/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4525378c8fe40b2e700d0baca7ad8cb69f98340ac3f0b8e38811021e7e36dc8b/matplotlib/matplotlib/issues/12628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4525378c8fe40b2e700d0baca7ad8cb69f98340ac3f0b8e38811021e7e36dc8b/matplotlib/matplotlib/issues/12628 |
| og:image:alt | As shown by #11094 #12612 matplotlib is used inside of webservers to dynamically serve plots. The example should show: importance of picking a non-GUI backend (both by setting the backend and expli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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