Metadata-Version: 2.4
Name: ggnewscale-python
Version: 0.5.2.9000
Summary: Python port of the R ggnewscale package — multiple fill and colour scales in ggplot2_py
Author: Python port maintained alongside ggplot2_py
License-Expression: GPL-3.0-only
License-File: LICENSE
Keywords: aes,ggnewscale,ggplot2,scales,visualization
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.10
Requires-Dist: ggplot2-python>=4.0.2
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs; extra == 'docs'
Requires-Dist: mkdocs-jupyter; extra == 'docs'
Requires-Dist: mkdocs-material; extra == 'docs'
Requires-Dist: mkdocstrings[python]; extra == 'docs'
Description-Content-Type: text/markdown

# ggnewscale-python

[![PyPI](https://img.shields.io/pypi/v/ggnewscale-python)](https://pypi.org/project/ggnewscale-python/)

Python port of the R [ggnewscale](https://eliocamp.github.io/ggnewscale/) package.


## Installation

```bash
pip install ggnewscale-python
```

## Tutorial

See [`tutorials/ggnewscale_overview.ipynb`](tutorials/ggnewscale_overview.ipynb)
for a guided tour of every public API entry point with side-by-side
renderings.

## Public API

The Python public API mirrors the R `ggnewscale` package 1:1:

| Python | R equivalent |
|---|---|
| `new_scale(aes)` | `new_scale(aes)` |
| `new_scale_color()` | `new_scale_color()` |
| `new_scale_colour()` | `new_scale_colour()` |
| `new_scale_fill()` | `new_scale_fill()` |
| `rename_aes(**kwargs)` | `rename_aes(...)` |
| `clear_aes()` | `clear_aes()` |

