Title: Adds blitting plot by StephenNneji · Pull Request #156 · RascalSoftware/python-RAT · GitHub
Open Graph Title: Adds blitting plot by StephenNneji · Pull Request #156 · RascalSoftware/python-RAT
X Title: Adds blitting plot by StephenNneji · Pull Request #156 · RascalSoftware/python-RAT
Description: Adds a class to facilitate a blit plot in RasCAL, this class can be tested as shown below. The object creation should do a normal plot then subsequent updates will use blitting if the background has not changed. This leads to a decent speed up between the first draw and subsequent draws. class TestPlot: def __init__(self, block=False): self.block = block self.closed = False self.blit_plot = None def __enter__(self): self.figure = plt.subplots(1, 2)[0] self.figure.canvas.mpl_connect("close_event", self._setCloseState) self.figure.show() RATapi.events.register(RATapi.events.EventTypes.Plot, self.plotEvent) return self.figure def _setCloseState(self, _): self.closed = True def plotEvent(self, event): if not self.closed and self.figure.number in plt.get_fignums(): if self.blit_plot is None: self.blit_plot = PLotSLDWithBlitting(event, self.figure) else: self.blit_plot.update(event) def __exit__(self, _exc_type, _exc_val, _traceback): RATapi.events.clear(RATapi.events.EventTypes.Plot, self.plotEvent) if not self.closed and self.figure.number in plt.get_fignums(): plt.show(block=self.block) Usage will be with TestPlot(block=True): problem, results = DSPC_standard_layers()
Open Graph Description: Adds a class to facilitate a blit plot in RasCAL, this class can be tested as shown below. The object creation should do a normal plot then subsequent updates will use blitting if the background ha...
X Description: Adds a class to facilitate a blit plot in RasCAL, this class can be tested as shown below. The object creation should do a normal plot then subsequent updates will use blitting if the background ha...
Opengraph URL: https://github.com/RascalSoftware/python-RAT/pull/156
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e9ff1a1e-89a9-bb7c-2119-ac3fc4f1f019 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E3F0:2B3115:F8CCE:1404BF:699207FD |
| html-safe-nonce | 98cd7abbdfb9508a94ffe62130da0c52242394ce16bf0d6b1086c98f7fe17325 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0YwOjJCMzExNTpGOENDRToxNDA0QkY6Njk5MjA3RkQiLCJ2aXNpdG9yX2lkIjoiNzMyNDQ4MTgyNzg2Mjg3NDEwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78c17d06c0183e28a7e06164a05f8d7d5211a0d357128e4c93de50e9cc97de8b |
| hovercard-subject-tag | pull_request:2506513005 |
| 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/RascalSoftware/python-RAT/pull/156/files |
| twitter:image | https://avatars.githubusercontent.com/u/34302892?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34302892?s=400&v=4 |
| og:image:alt | Adds a class to facilitate a blit plot in RasCAL, this class can be tested as shown below. The object creation should do a normal plot then subsequent updates will use blitting if the background ha... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RascalSoftware/python-RAT git https://github.com/RascalSoftware/python-RAT.git |
| octolytics-dimension-user_id | 122092643 |
| octolytics-dimension-user_login | RascalSoftware |
| octolytics-dimension-repository_id | 661644646 |
| octolytics-dimension-repository_nwo | RascalSoftware/python-RAT |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 661644646 |
| octolytics-dimension-repository_network_root_nwo | RascalSoftware/python-RAT |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width