Metadata-Version: 2.4
Name: dppd-plotnine
Version: 0.2.9
Summary: Combines plotnine and dppd
Author-email: Florian Finkernagel <finkernagel@imt.uni-marburg.de>
License: The MIT License (MIT)
        
        Copyright (c) 2025 Florian Finkernagel
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Repository, https://github.com/TyberiusPrime/dppd_plotnine
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE.txt
License-File: AUTHORS.rst
Requires-Dist: plotnine>=0.13
Requires-Dist: mizani>=0.13
Requires-Dist: dppd
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: numpydoc; extra == "dev"
Requires-Dist: plotnine; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: sphinx; extra == "dev"
Requires-Dist: sphinx-bootstrap-theme; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Dynamic: license-file

# 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.



