Title: Non-interactive backend calls draw more than 100 times · Issue #4780 · matplotlib/matplotlib · GitHub
Open Graph Title: Non-interactive backend calls draw more than 100 times · Issue #4780 · matplotlib/matplotlib
X Title: Non-interactive backend calls draw more than 100 times · Issue #4780 · matplotlib/matplotlib
Description: This code: import matplotlib matplotlib.use('agg') from pylab import * plot([1,2,5]) savefig("test") causes Figure.draw to be called 155 times with the code currently in master. With matplotlib 1.4.3, Figure.draw is called twice (once to...
Open Graph Description: This code: import matplotlib matplotlib.use('agg') from pylab import * plot([1,2,5]) savefig("test") causes Figure.draw to be called 155 times with the code currently in master. With matplotlib 1.4...
X Description: This code: import matplotlib matplotlib.use('agg') from pylab import * plot([1,2,5]) savefig("test") causes Figure.draw to be called 155 times with the code currently in master. W...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4780
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Non-interactive backend calls draw more than 100 times","articleBody":"This code:\n\n``` python\nimport matplotlib\nmatplotlib.use('agg')\nfrom pylab import *\nplot([1,2,5])\nsavefig(\"test\")\n```\n\ncauses Figure.draw to be called 155 times with the code currently in master.\nWith matplotlib 1.4.3, Figure.draw is called twice (once to create the PNG, and once to redraw the figure).\nI am guessing that this has to do with the default implementation of draw_idle in FigureCanvasBase. Currently it calls draw().\nSo then if I change a property of the figure, the figure gets marked as stale, draw_idle is called, draw_idle calls draw, which resets the figure as non-stale.\n","author":{"url":"https://github.com/mdehoon","@type":"Person","name":"mdehoon"},"datePublished":"2015-07-24T09:54:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/4780/matplotlib/issues/4780"}
| 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:f5fa9269-c264-fdf3-298b-be815b8e4017 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B148:13D32C:187BBD7:215A760:6A5238C2 |
| html-safe-nonce | baa386fbd01ac656376556b93a342be45e912504601a25c8452c22219fd8f436 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQ4OjEzRDMyQzoxODdCQkQ3OjIxNUE3NjA6NkE1MjM4QzIiLCJ2aXNpdG9yX2lkIjoiMzI2NjM5MTE5OTU0NDY1NDAxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eaf8e57fecd3d685a6bb01951cf2acd3fd4eeb1a2f954b583ce002e6cab3ad50 |
| hovercard-subject-tag | issue:97016688 |
| 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/4780/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e2d336b4cda4014acd88e45170a82d0a393735af092a856481abd3bae1f507b/matplotlib/matplotlib/issues/4780 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e2d336b4cda4014acd88e45170a82d0a393735af092a856481abd3bae1f507b/matplotlib/matplotlib/issues/4780 |
| og:image:alt | This code: import matplotlib matplotlib.use('agg') from pylab import * plot([1,2,5]) savefig("test") causes Figure.draw to be called 155 times with the code currently in master. With matplotlib 1.4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdehoon |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width