{"id":20456545,"url":"https://github.com/krassowski/plotnine3d","last_synced_at":"2025-04-13T04:02:45.059Z","repository":{"id":45780359,"uuid":"514538758","full_name":"krassowski/plotnine3d","owner":"krassowski","description":"3D geoms for plotnine (grammar of graphics in Python)","archived":false,"fork":false,"pushed_at":"2022-08-05T16:02:12.000Z","size":8319,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T19:09:26.356Z","etag":null,"topics":["3d","3d-graphics","matplotlib","plotnine","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/krassowski.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":"2022-07-16T09:51:37.000Z","updated_at":"2024-12-16T10:36:29.000Z","dependencies_parsed_at":"2022-08-28T08:20:34.326Z","dependency_job_id":null,"html_url":"https://github.com/krassowski/plotnine3d","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/krassowski%2Fplotnine3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fplotnine3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fplotnine3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fplotnine3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krassowski","download_url":"https://codeload.github.com/krassowski/plotnine3d/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661702,"owners_count":21141450,"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":["3d","3d-graphics","matplotlib","plotnine","python","visualization"],"created_at":"2024-11-15T11:23:02.170Z","updated_at":"2025-04-13T04:02:44.992Z","avatar_url":"https://github.com/krassowski.png","language":"Python","readme":"# plotnine3d\n\n3D geoms for [plotnine](https://github.com/has2k1/plotnine) (grammar of graphics in Python).\n\nStatus: experimental. Please leave feedback; pull requests welcome.\n\n\n### Examples\n\nPlease refer to the [notebook with examples](https://github.com/krassowski/plotnine3d/blob/main/Examples.ipynb) for more details on data preparation.\n\n#### Surface\n\n\n```python\n(\n    ggplot_3d(mt_bruno_long)\n    + geom_polygon_3d(size=0.01)\n    + aes(x='x', y='y', z='height')\n    + theme_minimal()\n)\n```\n\n![surface](https://raw.githubusercontent.com/krassowski/plotnine3d/main/docs/images/surface.png)\n\n#### Scatter\n\n```python\n(\n    ggplot_3d(mtcars)\n    + aes(\n        x='hp', y='disp', z='mpg',\n        shape='transmission',\n        fill='transmission'\n    )\n    + theme_minimal()\n    + scale_shape_manual(values={'automatic': 'o', 'manual': '^'})\n    + geom_point_3d(stroke=0.25, size=3, color='black')\n    + scale_fill_manual(values={'automatic': 'orange', 'manual': 'blue'})\n)\n```\n\n![scatter](https://raw.githubusercontent.com/krassowski/plotnine3d/main/docs/images/scatter.png)\n\n#### Voxels\n\n```python\n(\n    ggplot_3d(voxels_long)\n    + aes(x='x', y='y', z='z', fill='object')\n    + geom_voxel_3d(size=0.01)\n    + theme_minimal()\n    + ylim(0, 8)\n    + xlim(0, 8)\n    + scale_fill_manual(values={\n        'link': 'red',\n        'cube1': 'blue',\n        'cube2': 'green'\n    })\n)\n```\n\n\n![voxels](https://raw.githubusercontent.com/krassowski/plotnine3d/main/docs/images/voxels.png)\n\n#### Line\n\n```python\n(\n    ggplot_3d(data)\n    + aes(x='x', y='y', z='z', color='z')\n    + geom_line_3d(size=2)\n    + theme_minimal()\n)\n```\n\n\n![line](https://raw.githubusercontent.com/krassowski/plotnine3d/main/docs/images/line.png)\n\n\n### Installation\n\nInstallation from PyPI:\n\n```\npip install plotnine3d\n```\n","funding_links":[],"categories":["Miscellaneous"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrassowski%2Fplotnine3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrassowski%2Fplotnine3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrassowski%2Fplotnine3d/lists"}