{"id":15646624,"url":"https://github.com/nvictus/svgpath2mpl","last_synced_at":"2025-09-21T00:10:48.062Z","repository":{"id":45910851,"uuid":"55884845","full_name":"nvictus/svgpath2mpl","owner":"nvictus","description":"SVG path parser for matplotlib","archived":false,"fork":false,"pushed_at":"2022-07-17T19:53:32.000Z","size":1529,"stargazers_count":61,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-10T10:03:01.327Z","etag":null,"topics":["matplotlib","parser","python","svg","svg-path"],"latest_commit_sha":null,"homepage":"","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/nvictus.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-10T06:47:11.000Z","updated_at":"2024-10-24T03:14:36.000Z","dependencies_parsed_at":"2022-08-06T10:01:33.764Z","dependency_job_id":null,"html_url":"https://github.com/nvictus/svgpath2mpl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvictus%2Fsvgpath2mpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvictus%2Fsvgpath2mpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvictus%2Fsvgpath2mpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvictus%2Fsvgpath2mpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvictus","download_url":"https://codeload.github.com/nvictus/svgpath2mpl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230527879,"owners_count":18240052,"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","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","parser","python","svg","svg-path"],"created_at":"2024-10-03T12:13:31.145Z","updated_at":"2025-09-21T00:10:43.026Z","avatar_url":"https://github.com/nvictus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"svgpath2mpl\n===========\n\n.. image:: https://github.com/nvictus/svgpath2mpl/actions/workflows/python-test.yml/badge.svg\n    :target: https://github.com/nvictus/svgpath2mpl/actions\n    :alt: Github Actions CI\n\n.. image:: https://badge.fury.io/py/svgpath2mpl.svg\n    :target: https://badge.fury.io/py/svgpath2mpl\n    :alt: PyPI version\n\nParse SVG paths into matplotlib ``Path`` objects for plotting.\n\nA path in SVG is defined by a 'path' element which contains a ``d=\"(path data)\"`` attribute that contains moveto, line, curve (both cubic and quadratic Béziers), arc and closepath instructions. Matplotlib actually supports all of these instructions natively but doesn't provide a parser or fully compatible API.\n\n.. image:: http://i.imgur.com/NcZVznQ.png\n    :align: center\n    :width: 150px\n\nBased on:\n\n1. `svg_parse \u003chttps://github.com/rougier/LinuxMag-HS-2014/blob/master/matplotlib/firefox.py\u003e`_ for matplotlib by Nicolas P. Rougier (BSD license).\n\n2. `svg.path \u003chttps://github.com/regebro/svg.path\u003e`_ by Lennart Regebro (MIT license).\n\nThis module adds the path commands missing from (1), including smooth curves and endpoint-parameterized elliptical arcs.\n\n\n.. code-block:: python\n\n\t\u003e\u003e\u003e from svgpath2mpl import parse_path\n\t\u003e\u003e\u003e parse_path('M 100 100 L 300 100')\n\tPath(array([[ 100.,  100.], [ 300.,  100.]]), array([1, 2], dtype=uint8))\n\nSee the Jupyter Notebook `gallery \u003chttp://nbviewer.jupyter.org/github/nvictus/svgpath2mpl/tree/master/examples/\u003e`_ of examples.\n\nResources\n---------\nSee the `SVG Specification \u003chttps://www.w3.org/TR/SVG/paths.html\u003e`_.\n\nSee the matplotlib path `tutorial \u003chttp://matplotlib.org/users/path_tutorial.html\u003e`_ and `API docs \u003chttp://matplotlib.org/1.2.1/api/path_api.html\u003e`_.\n\n\nLicense\n-------\n\nBSD (3-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvictus%2Fsvgpath2mpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvictus%2Fsvgpath2mpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvictus%2Fsvgpath2mpl/lists"}