{"id":15628941,"url":"https://github.com/pwwang/plotnine-prism","last_synced_at":"2025-04-29T09:56:26.560Z","repository":{"id":76855197,"uuid":"393874815","full_name":"pwwang/plotnine-prism","owner":"pwwang","description":"Prism themes for plotnine, inspired by ggprism.","archived":false,"fork":false,"pushed_at":"2025-03-28T17:25:38.000Z","size":7317,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T17:36:08.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pwwang.github.io/plotnine-prism","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwwang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-08-08T06:09:11.000Z","updated_at":"2025-03-28T17:22:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d282567-f213-4d9c-a26b-b2711cf49716","html_url":"https://github.com/pwwang/plotnine-prism","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fplotnine-prism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fplotnine-prism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fplotnine-prism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fplotnine-prism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwwang","download_url":"https://codeload.github.com/pwwang/plotnine-prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251422632,"owners_count":21587024,"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":"2024-10-03T10:24:54.252Z","updated_at":"2025-04-29T09:56:26.541Z","avatar_url":"https://github.com/pwwang.png","language":"Python","readme":"# plotnine-prism\n\nPrism themes for [plotnine][1], inspired by [ggprism][2].\n\n\n## Installation\n\n```\npip install -U plotnine-prism\n```\n\n## Documentation\n\n[https://pwwang.github.io/plotnine-prism][3]\n\n## Usage\n\nSee [this notebook][6] for the following example, and also [Getting started][4] for a quick overview of `plotnine_prism` features.\n\n```python\nfrom plotnine import *\nfrom plotnine_prism import *\n\nfrom datar.all import f, as_categorical, mutate\nfrom datar.datasets import ToothGrowth\n\nToothGrowth \u003e\u003e= mutate(dose=as_categorical(f.dose))\n\nbase = (\n    ggplot(ToothGrowth, aes(x = \"dose\", y = \"len\")) +\n    geom_violin(aes(colour = \"dose\", fill = \"dose\"), trim = False) +\n    geom_boxplot(aes(fill = \"dose\"), width = 0.2, colour = \"black\")\n)\n\np1 = base + ylim(-5, 40)\np2 = (\n    base +\n    scale_y_continuous(limits=[-5, 40], guide=guide_prism_offset_minor()) +\n    scale_color_prism('floral') +\n    scale_fill_prism('floral') +\n    theme_prism()\n)\n# See examples/nb_helpers.py for plot_grid function\n# plot_grid(p1, p2)\n```\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd valign=\"top\"\u003e\u003cimg src=\"./toothgrowth1.png\" /\u003e\u003c/td\u003e\n        \u003ctd valign=\"top\"\u003e\u003cimg src=\"./toothgrowth2.png\" /\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## More examples\n\nThe Dose Response Curve was recreated. See [this vignette][5] for the source code and step-by-step instructions.\n\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd valign=\"top\"\u003e\u003cimg src=\"./dose1.png\" /\u003e\u003c/td\u003e\n        \u003ctd valign=\"top\"\u003e\u003cimg src=\"./dose2.png\" /\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n[1]: https://github.com/has2k1/plotnine\n[2]: https://github.com/csdaw/ggprism/\n[3]: https://pwwang.github.io/plotnine-prism\n[4]: https://pwwang.github.io/plotnine-prism/get_started\n[5]: https://pwwang.github.io/plotnine-prism/raw/ex1-dose\n[6]: https://pwwang.github.io/plotnine-prism/raw/README\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwwang%2Fplotnine-prism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwwang%2Fplotnine-prism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwwang%2Fplotnine-prism/lists"}