dppd-plotnine


Namedppd-plotnine JSON
Version 0.2.7 PyPI version JSON
download
home_pagehttps://github.com/TyberiusPrime/dppd_plotnine
SummaryCombines plotnine and dppd
upload_time2024-05-14 14:37:43
maintainerNone
docs_urlNone
authorFlorian Finkernagel
requires_pythonNone
licensemit
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # dppd_plotnine

| Build status: | [![Build Status](https://travis-ci.com/TyberiusPrime/dppd_plotnine.svg?branch=master)](https://travis-ci.com/TyberiusPrime/dppd_plotnine)|
|---------------|-----------------------------------------------------------------------------|
| Documentation | https://dppd_plotnine.readthedocs.io/en/latest/

dppd_plotnine combines the power of
[plotnine](https://plotnine.readthedocs.io/en/stable) and
[dppd](https://dppd.readthedocs.io/en/latest/)

It allows you to use code like this


```python
   import numpy as np
   from dppd import dppd
   import dppd_plotnine
   from plotnine.data import mtcars
   import plotnine as p9
   dp, X = dppd()

   plot = (
      dp(mtcars)
      .assign(kwh=X.hp * 0.74)
      .categorize("cyl")
      .p9()
      .add_point(
            "cyl",
            "kwh",
            color="cyl",
            position=p9.position_jitter(height=0, random_state=500),
      )
      .add_errorbar(
            x="cyl",
            y="kwh_median",
            ymin="kwh_median",
            ymax="kwh_median",
            data=dp(X.data)
            .groupby("cyl")
            .summarize(("kwh", np.median, "kwh_median"))
            .pd,
      )
      .scale_color_manual(
            ["red", "blue", "purple"]
      )  # after pd, X is what it was before
      .pd
    )
    plot.save("test.png")
    

```

![Example
image](https://github.com/TyberiusPrime/dppd_plotnine/raw/master/docs/_static/index.png)

Please see our full documentation at https://dppd_plotnine.readthedocs.io/en/latest/
for more details of the straight and enhanced plotnine mappings available.




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/TyberiusPrime/dppd_plotnine",
    "name": "dppd-plotnine",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Florian Finkernagel",
    "author_email": "finkernagel@imt.uni-marburg.de",
    "download_url": "https://files.pythonhosted.org/packages/19/87/3c147effeab45d33c934cddb511ed570163ebb951e8e872e19f1dd7b3a5c/dppd_plotnine-0.2.7.tar.gz",
    "platform": "any",
    "description": "# dppd_plotnine\n\n| Build status: | [![Build Status](https://travis-ci.com/TyberiusPrime/dppd_plotnine.svg?branch=master)](https://travis-ci.com/TyberiusPrime/dppd_plotnine)|\n|---------------|-----------------------------------------------------------------------------|\n| Documentation | https://dppd_plotnine.readthedocs.io/en/latest/\n\ndppd_plotnine combines the power of\n[plotnine](https://plotnine.readthedocs.io/en/stable) and\n[dppd](https://dppd.readthedocs.io/en/latest/)\n\nIt allows you to use code like this\n\n\n```python\n   import numpy as np\n   from dppd import dppd\n   import dppd_plotnine\n   from plotnine.data import mtcars\n   import plotnine as p9\n   dp, X = dppd()\n\n   plot = (\n      dp(mtcars)\n      .assign(kwh=X.hp * 0.74)\n      .categorize(\"cyl\")\n      .p9()\n      .add_point(\n            \"cyl\",\n            \"kwh\",\n            color=\"cyl\",\n            position=p9.position_jitter(height=0, random_state=500),\n      )\n      .add_errorbar(\n            x=\"cyl\",\n            y=\"kwh_median\",\n            ymin=\"kwh_median\",\n            ymax=\"kwh_median\",\n            data=dp(X.data)\n            .groupby(\"cyl\")\n            .summarize((\"kwh\", np.median, \"kwh_median\"))\n            .pd,\n      )\n      .scale_color_manual(\n            [\"red\", \"blue\", \"purple\"]\n      )  # after pd, X is what it was before\n      .pd\n    )\n    plot.save(\"test.png\")\n    \n\n```\n\n![Example\nimage](https://github.com/TyberiusPrime/dppd_plotnine/raw/master/docs/_static/index.png)\n\nPlease see our full documentation at https://dppd_plotnine.readthedocs.io/en/latest/\nfor more details of the straight and enhanced plotnine mappings available.\n\n\n\n",
    "bugtrack_url": null,
    "license": "mit",
    "summary": "Combines plotnine and dppd",
    "version": "0.2.7",
    "project_urls": {
        "Homepage": "https://github.com/TyberiusPrime/dppd_plotnine"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19873c147effeab45d33c934cddb511ed570163ebb951e8e872e19f1dd7b3a5c",
                "md5": "b73f46c9b5afa632105ae5dd1342c9ec",
                "sha256": "2a9a8dfac44ae42350727eb14c083a32ce47275e15510c10a29617728f1bc830"
            },
            "downloads": -1,
            "filename": "dppd_plotnine-0.2.7.tar.gz",
            "has_sig": false,
            "md5_digest": "b73f46c9b5afa632105ae5dd1342c9ec",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10689,
            "upload_time": "2024-05-14T14:37:43",
            "upload_time_iso_8601": "2024-05-14T14:37:43.702369Z",
            "url": "https://files.pythonhosted.org/packages/19/87/3c147effeab45d33c934cddb511ed570163ebb951e8e872e19f1dd7b3a5c/dppd_plotnine-0.2.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-14 14:37:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TyberiusPrime",
    "github_project": "dppd_plotnine",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dppd-plotnine"
}
        
Elapsed time: 0.80185s