{"id":38551247,"url":"https://github.com/lionel42/pygame-matplotlib-backend","last_synced_at":"2026-01-17T07:34:40.423Z","repository":{"id":40896404,"uuid":"390866474","full_name":"lionel42/pygame-matplotlib-backend","owner":"lionel42","description":"A dedicated matplotlib backend made with pygame","archived":false,"fork":false,"pushed_at":"2025-07-28T19:47:12.000Z","size":202,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-06T04:20:36.821Z","etag":null,"topics":["matplotlib-backend","plotting","pygame","pygame-gui","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lionel42.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,"zenodo":null}},"created_at":"2021-07-29T22:37:46.000Z","updated_at":"2025-09-24T13:05:55.000Z","dependencies_parsed_at":"2024-01-29T15:42:06.332Z","dependency_job_id":"dc638fdd-0001-47f9-9c45-0ccab98319cc","html_url":"https://github.com/lionel42/pygame-matplotlib-backend","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"7b15c06189e0b690a0ec5ba83e6b9759f940642e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lionel42/pygame-matplotlib-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionel42%2Fpygame-matplotlib-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionel42%2Fpygame-matplotlib-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionel42%2Fpygame-matplotlib-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionel42%2Fpygame-matplotlib-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lionel42","download_url":"https://codeload.github.com/lionel42/pygame-matplotlib-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionel42%2Fpygame-matplotlib-backend/sbom","scorecard":{"id":591762,"data":{"date":"2025-08-11","repo":{"name":"github.com/lionel42/pygame-matplotlib-backend","commit":"b45cdb1da7d71389da7f720819d475fc4e045b66"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Maintained","score":10,"reason":"16 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/python-publish.yml:16","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/lionel42/pygame-matplotlib-backend/python-package.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/lionel42/pygame-matplotlib-backend/python-package.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/lionel42/pygame-matplotlib-backend/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/lionel42/pygame-matplotlib-backend/python-publish.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:32","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/python-publish.yml:19"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T22:07:50.300Z","repository_id":40896404,"created_at":"2025-08-20T22:07:50.300Z","updated_at":"2025-08-20T22:07:50.300Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["matplotlib-backend","plotting","pygame","pygame-gui","python"],"created_at":"2026-01-17T07:34:39.753Z","updated_at":"2026-01-17T07:34:40.369Z","avatar_url":"https://github.com/lionel42.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pygame Matplotlib Backend\n\nCreate plots in pygame.\n\n\nNote that the library is in an experimental developement stage and not\nall features of standard matplotlib backends are implement at the moment.\n\n## Installation\n```\npip install pygame-matplotlib\n```\n\n## Usage\n\nFirst you will need to specify that you want to use pygame backend.\n```python\n# Select pygame backend\nimport matplotlib\nmatplotlib.use('pygame')\n```\n\nThen you can use matplotlib as you usually do.\n```python\n# Standard matplotlib syntax\nimport matplotlib.pyplot as plt\nfig, ax = plt.subplots()  # Create a figure containing a single axes.\nax.plot([1, 2, 3, 4], [1, 4, 2, 3])  # Plot some data on the axes.\nplt.show()\n```\n\nOr you can include the plot in your game using the fact that a ```Figure``` is\nalso a ```pygame.Surface``` with this backend.\n```python\nimport pygame\nimport pygame.display\n\nfig, axes = plt.subplots(1, 1,)\naxes.plot([1,2], [1,2], color='green', label='test')\n\nfig.canvas.draw()\n\nscreen = pygame.display.set_mode((800, 600))\n\n# Use the fig as a pygame.Surface\nscreen.blit(fig, (100, 100))\n\nshow = True\nwhile show:\n    for event in pygame.event.get():\n        if event.type == pygame.QUIT:\n            # Stop showing when quit\n            show = False\n    pygame.display.update()\n```\n\nNote that if you want to update the plot during the game, you might\nneed to call ```fig.canvas.draw()``` and ```screen.blit(fig)``` during\nthe game loop.\n\nSee examples in test.py or test_show.py\n\n\n## How it works in the back\n\nThe matplotlib ```Figure``` object is replaced by a ```FigureSurface``` object\nwhich inherits from both ```matplotlib.figure.Figure``` and\n```pygame.Surface```.\n\n\n## Current implementation\n\nSupport mainly the basic plotting capabilities.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flionel42%2Fpygame-matplotlib-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flionel42%2Fpygame-matplotlib-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flionel42%2Fpygame-matplotlib-backend/lists"}