{"id":25189019,"url":"https://github.com/yuricst/trajplotlib","last_synced_at":"2025-04-04T10:16:44.794Z","repository":{"id":39667632,"uuid":"387399235","full_name":"Yuricst/trajplotlib","owner":"Yuricst","description":"matplotlib extension functions to plot trajectories","archived":false,"fork":false,"pushed_at":"2022-06-24T19:51:36.000Z","size":738,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T20:39:12.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Yuricst.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}},"created_at":"2021-07-19T08:50:40.000Z","updated_at":"2023-04-29T01:47:30.000Z","dependencies_parsed_at":"2022-09-20T07:10:25.604Z","dependency_job_id":null,"html_url":"https://github.com/Yuricst/trajplotlib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2Ftrajplotlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2Ftrajplotlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2Ftrajplotlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2Ftrajplotlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yuricst","download_url":"https://codeload.github.com/Yuricst/trajplotlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157272,"owners_count":20893221,"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":[],"created_at":"2025-02-09T20:35:02.842Z","updated_at":"2025-04-04T10:16:44.755Z","avatar_url":"https://github.com/Yuricst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trajplotlib\nmatplotlib extension functions to plot trajectories\n\n[![Documentation Status](https://readthedocs.org/projects/trajplotlib/badge/?version=latest)](https://trajplotlib.readthedocs.io/en/latest/?badge=latest)\n\nDependencies: Python\u003e=3.7, Matplotlib, numpy\n\n### 3D trajectory with equal size axes\n\nTo generate a quick 3D trajectory plot with equal-axis is a one-liner: \n\n```python\nimport matplotlib.pyplot as plt\nimport trajplotlib\n\n# compute/load data for xs, ys, zs\n\n# create plot\nfig, ax = trajplotlib.quickplot3(xs, ys, zs, radius=184.0)\nplt.show()\n```\n\nIn the above, `xs`, `ys`, and `zs` are arrays of the trajectory coordinates, and `radius` is an optional value for plotting a sphere of radius `radius`. \n\nThis generates the following: \n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./examples/plot3d_example.png\" width=\"550\" title=\"hover text\"\u003e\n\u003c/p\u003e\n\nThe above function returns `ax`, which is an `Axes3DSubplot` object. As such, the plot may be modified or more elements may be appended just as one would do with regular `matplotlib`: \n\n```python\nax.set_xlabel('x, km')\nax.set_ylabel('y, km')\nax.set_zlabel('z, km')\nax.set_title(\"My trajectory\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuricst%2Ftrajplotlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuricst%2Ftrajplotlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuricst%2Ftrajplotlib/lists"}