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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:fa8d03fc-be54-b7c5-b9d9-8d6ee580eed1 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E4A6:7FB4E:31520C:3E75F4:6992214D |
| html-safe-nonce | ae2dae07fffd52fc19a57bf919e108e88790f930c0bc296dfbe2846cc762a744 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEE2OjdGQjRFOjMxNTIwQzozRTc1RjQ6Njk5MjIxNEQiLCJ2aXNpdG9yX2lkIjoiMTg2ODQyMjMyODcxNjc2MzQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0d0f978355fe098a320545980a5215bf6d9ce211b0e1df3aa8bb93fe21d0f11d |
| hovercard-subject-tag | pull_request:2506513005 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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-cache |
| 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 full-width-p-0 |
| disable-turbo | false |
| 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