{"id":50800787,"url":"https://github.com/jfreissmann/mpllegends","last_synced_at":"2026-06-12T19:32:51.511Z","repository":{"id":242856090,"uuid":"810749935","full_name":"jfreissmann/mpllegends","owner":"jfreissmann","description":"Customizable standalone matplotlib legends","archived":false,"fork":false,"pushed_at":"2024-06-27T14:28:41.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-27T17:35:09.301Z","etag":null,"topics":["data-science","matplotlib","plotting","python","visualization"],"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/jfreissmann.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-05T09:35:00.000Z","updated_at":"2024-06-27T14:28:44.000Z","dependencies_parsed_at":"2024-06-05T11:39:29.865Z","dependency_job_id":"f6a989b3-d5e6-4a6b-a60f-42e250468e45","html_url":"https://github.com/jfreissmann/mpllegends","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"2df0570eaeee17ac8b037ff6da4464df9cd9985d"},"previous_names":["jfreissmann/mpllegends"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jfreissmann/mpllegends","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfreissmann%2Fmpllegends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfreissmann%2Fmpllegends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfreissmann%2Fmpllegends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfreissmann%2Fmpllegends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfreissmann","download_url":"https://codeload.github.com/jfreissmann/mpllegends/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfreissmann%2Fmpllegends/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34260309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["data-science","matplotlib","plotting","python","visualization"],"created_at":"2026-06-12T19:32:50.760Z","updated_at":"2026-06-12T19:32:51.502Z","avatar_url":"https://github.com/jfreissmann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpllegends\nCustomizable standalone matplotlib legends.\n\n## Installation\n\nFor now, only direct download from the [GitHub Repository](https://github.com/jfreissmann/heatpumps) is supported, so just clone it locally or download a ZIP file of the code. If you are using [Miniforge](https://github.com/conda-forge/miniforge), you can create and activate a clean environment like this:\n\n```\nconda create -n my_new_env python=3.11\n```\n\n```\nconda activate my_new_env\n```\n\nIf you want to build the package locally and install it, you should use these commands from the root directory of the repository:\n\n```\npython install flit\n```\n\n```\nflit buil\n```\n\n```\npython -m pip install .\n```\n\nIf you want to use an editable version of the package, e.g. if you want to contribute to the project and test your own changes, skip the commands above and use this one:\n\n```\npython -m pip install -e \"path/to/the/mpllengends/dir/\"\n```\n\n## Usage\n\n```python\nfrom mpllegends.entries import Line, Marker, Rectangle\nfrom mpllegends.legend import Legend\n\nlegend = Legend(\n    ncol=3, borderpad=0.5, fontweight='bold', fontsize='large',\n    columnspacing=1.5\n)\n\nlegend.add_entry(Line(label='Test Line', color='r'))\nlegend.add_entry(\n    Marker(\n        label='Test Marker', marker='o', markersize=12,\n        facecolor='b', edgecolor='g'\n    )\n)\nlegend.add_entry(Rectangle(label='Test Rect', color='#111111'))\n\nlegend.create()\n\nlegend.save('example_legend.pdf')\nlegend.save('example_legend.png', dpi=300)\n\nlegend.show()\n```\n\n![Example of a legend created by the code above.](example_legend.png)\n\n## License\n\nSee the `LICENSE` file for further information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfreissmann%2Fmpllegends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfreissmann%2Fmpllegends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfreissmann%2Fmpllegends/lists"}