{"id":18676228,"url":"https://github.com/cgarciae/dyn_plot","last_synced_at":"2025-07-30T07:09:23.009Z","repository":{"id":245186329,"uuid":"817509230","full_name":"cgarciae/dyn_plot","owner":"cgarciae","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-12T07:04:13.000Z","size":108,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T03:10:50.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cgarciae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-19T21:47:19.000Z","updated_at":"2024-07-12T07:04:17.000Z","dependencies_parsed_at":"2024-11-07T09:33:04.569Z","dependency_job_id":"22add7b3-9c79-40ef-bef8-9fdec02bf67b","html_url":"https://github.com/cgarciae/dyn_plot","commit_stats":null,"previous_names":["cgarciae/dyn_plot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cgarciae/dyn_plot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgarciae%2Fdyn_plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgarciae%2Fdyn_plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgarciae%2Fdyn_plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgarciae%2Fdyn_plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cgarciae","download_url":"https://codeload.github.com/cgarciae/dyn_plot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgarciae%2Fdyn_plot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267827505,"owners_count":24150350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T09:28:21.760Z","updated_at":"2025-07-30T07:09:22.984Z","avatar_url":"https://github.com/cgarciae.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dyn_plot\r\n\r\nCreate `matplotlib` figures that can be easily updated at runtime in Jupyter.\r\n\r\n```python\r\nimport numpy as np\r\nfrom dyn_plot import Plot\r\n\r\n# accepts all plt.figure() arguments\r\nplot = Plot(figsize=(10, 5))\r\n\r\nts = np.linspace(0, 10, 200)\r\nlosses = []\r\nfor t in ts:\r\n  loss = -np.log(t + 0.001) + np.random.normal() * 0.4\r\n  losses.append(loss)\r\n\r\n  with plot: # clear and redraw\r\n    # use any methods from Axes\r\n    plot.set_title(f't = {t:.2f}')\r\n    plot.plot(losses)\r\n\r\n# close to avoid an additional rendering of the inner figure\r\nplot.close() \r\n```\r\n\r\n![dyn plot video](https://github.com/cgarciae/dyn_plot/assets/5862228/5e2ecf91-5ee8-418a-9317-01ff390a8f31)\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgarciae%2Fdyn_plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcgarciae%2Fdyn_plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgarciae%2Fdyn_plot/lists"}