Title: WIP: Oo interactive; enable interactive mode with Axes and Figure methods by efiring · Pull Request #4082 · matplotlib/matplotlib · GitHub
Open Graph Title: WIP: Oo interactive; enable interactive mode with Axes and Figure methods by efiring · Pull Request #4082 · matplotlib/matplotlib
X Title: WIP: Oo interactive; enable interactive mode with Axes and Figure methods by efiring · Pull Request #4082 · matplotlib/matplotlib
Description: This is a sketch illustrating one method of allowing one to use the OO interface in interactive mode. It involves adding three methods to the Figure and Axes classes, and then using a decorator for any method in those classes that should have a draw_if_interactive behavior. Typically this would include all such methods that are wrapped in pyplot. In the initial version of this PR, this is illustrated with Figure.suptitle, Figure.text, Axes.plot, and Axes.errorbar. Print statements are presently left in to show how the system works; in particular, note that even though errorbar calls plot, the drawing operation is executed only once, so there is no significant loss of efficiency compared to the present pyplot function. A simple illustration in ipython is: %matplotlib import matplotlib.pyplot as plt fig = plt.gcf() fig.text(0.5, 0.5, 'testing') ax = plt.gca() ax.plot([1,2,3]) ax.errorbar([1,2.5, 3.5], [2, 3.5, 2], yerr=2)
Open Graph Description: This is a sketch illustrating one method of allowing one to use the OO interface in interactive mode. It involves adding three methods to the Figure and Axes classes, and then using a decorator fo...
X Description: This is a sketch illustrating one method of allowing one to use the OO interface in interactive mode. It involves adding three methods to the Figure and Axes classes, and then using a decorator fo...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/4082
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:da6d819e-b46e-bc79-9e43-b2efb99282e8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA0E:32425C:27B97F:3504F1:6A5401D9 |
| html-safe-nonce | 4129a6b5dbd07b06ac8527780a072570d86b18fe190a008e7f0e8df0fca521e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTBFOjMyNDI1QzoyN0I5N0Y6MzUwNEYxOjZBNTQwMUQ5IiwidmlzaXRvcl9pZCI6IjUzMDcwOTE2MTM5ODk5OTQ5NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b3c0001755a3c8bbf3633a4951dd3f4e49a25a14ae98a807d82282774ab861a1 |
| hovercard-subject-tag | pull_request:28876975 |
| 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/4082/files |
| twitter:image | https://avatars.githubusercontent.com/u/85125?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/85125?s=400&v=4 |
| og:image:alt | This is a sketch illustrating one method of allowing one to use the OO interface in interactive mode. It involves adding three methods to the Figure and Axes classes, and then using a decorator fo... |
| 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