{"id":37685615,"url":"https://github.com/feilong/brainplotlib","last_synced_at":"2026-01-18T00:06:46.860Z","repository":{"id":57416285,"uuid":"451931558","full_name":"feilong/brainplotlib","owner":"feilong","description":"A lightweight package to plot brain surfaces with Python.","archived":false,"fork":false,"pushed_at":"2023-07-25T15:32:11.000Z","size":90648,"stargazers_count":44,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-04T03:00:46.072Z","etag":null,"topics":["brain","fmri","neuroimaging","plotting","python","visualization"],"latest_commit_sha":null,"homepage":"https://feilong.github.io/brainplotlib/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feilong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.bib","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":".zenodo.json","notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-25T15:26:11.000Z","updated_at":"2025-11-21T19:13:18.000Z","dependencies_parsed_at":"2025-09-05T10:52:18.186Z","dependency_job_id":"c41b55e0-bffc-41ca-9ed0-bfb62bf9434f","html_url":"https://github.com/feilong/brainplotlib","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/feilong/brainplotlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feilong%2Fbrainplotlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feilong%2Fbrainplotlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feilong%2Fbrainplotlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feilong%2Fbrainplotlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feilong","download_url":"https://codeload.github.com/feilong/brainplotlib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feilong%2Fbrainplotlib/sbom","scorecard":{"id":395829,"data":{"date":"2025-08-11","repo":{"name":"github.com/feilong/brainplotlib","commit":"fbca555fcd34488ac2bca80f58b0e2d7fb2f9a28"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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.txt:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/feilong/brainplotlib/releases/88080765","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/feilong/brainplotlib/releases/88080765"],"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"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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"}}]},"last_synced_at":"2025-08-18T18:58:23.285Z","repository_id":57416285,"created_at":"2025-08-18T18:58:23.285Z","updated_at":"2025-08-18T18:58:23.285Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["brain","fmri","neuroimaging","plotting","python","visualization"],"created_at":"2026-01-16T12:32:03.207Z","updated_at":"2026-01-16T12:32:03.827Z","avatar_url":"https://github.com/feilong.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI](https://img.shields.io/pypi/v/brainplotlib)](https://pypi.org/project/brainplotlib/)\n[![Downloads](https://static.pepy.tech/badge/brainplotlib)](https://pepy.tech/project/brainplotlib)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/brainplotlib)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5979819.svg)](https://doi.org/10.5281/zenodo.5979819)\n\n`brainplotlib` is a Python package that plots data on cortical surface.\nIt's designed to have minimal requirements --- only `NumPy` and `matplotlib`.\n\n![brain image](https://github.com/feilong/brainplotlib/raw/main/images/example_data_with_colorbar.png)\n\n## Installation\nThe package can be installed with pip:\n```bash\npip install brainplotlib\n```\n\n## Example usage\n\n**See the [examples gallery](https://feilong.github.io/brainplotlib/examples/index.html) for all code examples with detailed explanations.**\n\n```Python\nimport numpy as np\nfrom brainplotlib import brain_plot, example_data\n\n# The example_data is icoorder5 resolution (10242 vertices per hemisphere),\n# and the non-cortical vertices have been masked out (9372 and 9370 remaining\n# vertices for the left and right hemisphere, respectively).\n\nimg, scale = brain_plot(\n    example_data, vmax=10, vmin=-10, cmap='seismic', return_scale=True)\n```\n\nThe rendered image is a NumPy array.\nIt can be rendered using `matplotlib`:\n```Python\nimport matplotlib.pyplot as plt\nfig = plt.figure(figsize=(img.shape[1] / 200, img.shape[0] / 200), dpi=200)\nplt.imshow(img)\nplt.axis('off')\ncbar = plt.colorbar(scale, shrink=0.8, aspect=30)\nplt.savefig('example_data_with_colorbar.png', bbox_inches='tight')\nplt.show()\n```\n\nAlternatively, the high-resolution image can be saved directly using `OpenCV`.\n```Python\nimport cv2\ncv2.imwrite(\n    'example_data.png',\n    np.round(img[:, :, [2, 1, 0]] * 255).astype(np.uint8))\n```\n\n## Citation\nIf you use this software in your publications, please cite it [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5979819.svg)](https://doi.org/10.5281/zenodo.5979819)\n```bibtex\n@software{brainplotlib,\n  author       = {Ma Feilong and Guo Jiahui and M. Ida Gobbini and James V. Haxby},\n  title        = {brainplotlib: plotting brain data on cortical surface},\n  month        = feb,\n  year         = 2022,\n  publisher    = {Zenodo},\n  doi          = {10.5281/zenodo.5979819},\n  url          = {https://doi.org/10.5281/zenodo.5979819}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeilong%2Fbrainplotlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeilong%2Fbrainplotlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeilong%2Fbrainplotlib/lists"}