Title: Better object-oriented interface for users by dmcdougall · Pull Request #1457 · matplotlib/matplotlib · GitHub
Open Graph Title: Better object-oriented interface for users by dmcdougall · Pull Request #1457 · matplotlib/matplotlib
X Title: Better object-oriented interface for users by dmcdougall · Pull Request #1457 · matplotlib/matplotlib
Description: A second attempt at addressing #1094. My initial attempt was a combination of #1125 and #1201. This went embarrassingly wrong, broke lots of things and was consequently reverted in #1221. Here's example usage: import matplotlib matplotlib.use('gtkagg') from matplotlib.figure import Figure fig = Figure() fig.show() # pops up figure window ax = fig.add_subplot(1, 1, 1) # add some axes fig.update() # a convenience method that wraps around canvas.draw_idle() I have tried it with Qt4, GTK and OS X backends and it seems to work. I'd like other people to test it out, though. Obviously this PR is not complete, the update method needs to raise exceptions in the appropriate places (non-GUI backends). Good or bad, feedback is welcome and appreciated.
Open Graph Description: A second attempt at addressing #1094. My initial attempt was a combination of #1125 and #1201. This went embarrassingly wrong, broke lots of things and was consequently reverted in #1221. Here'...
X Description: A second attempt at addressing #1094. My initial attempt was a combination of #1125 and #1201. This went embarrassingly wrong, broke lots of things and was consequently reverted in #1221. Here&...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/1457
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0e2610a8-99f4-4970-8bba-e76eeba3904a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C62:19106:18AE1B1:21A861E:6A53EC70 |
| html-safe-nonce | c3e0a22441f64a2c6704d8a8087bf46d96f700e55e4d7a1f72bdb0e3f5c11176 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzYyOjE5MTA2OjE4QUUxQjE6MjFBODYxRTo2QTUzRUM3MCIsInZpc2l0b3JfaWQiOiI4MTY2MDU3MTYzMTcwNzcwMDMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ff8c225dc01f3346a088ad5c2c2196099dd74c803b098d2637880066f671b18b |
| hovercard-subject-tag | pull_request:2922733 |
| 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/1457/files |
| twitter:image | https://avatars.githubusercontent.com/u/328518?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/328518?s=400&v=4 |
| og:image:alt | A second attempt at addressing #1094. My initial attempt was a combination of #1125 and #1201. This went embarrassingly wrong, broke lots of things and was consequently reverted in #1221. Here'... |
| 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 |
| 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