Metadata-Version: 2.1
Name: nb-cpp
Version: 0.0.8
Summary: Newton Basins implementation in C++ (pybind11)
Home-page: UNKNOWN
Author: gmagno
Author-email: goncalo.magno@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Scientific/Engineering
Classifier: Programming Language :: Python :: 3
Provides-Extra: dev
Provides-Extra: dev
Requires-Dist: autopep8 (>=1.4.3); extra == 'dev'
Requires-Dist: pylint (>=2.2.2); extra == 'dev'
Requires-Dist: pytest (>=4.1.1); extra == 'dev'
Requires-Dist: numpy (>=1.16.0); extra == 'dev'
Requires-Dist: matplotlib (>=3.0.2); extra == 'dev'

# Newton Basins C++ Implementation (pybind11)

A Python/C++ (pybind11) package to generate newton basins images.


## Installation

### From PyPI
```
pip install nb-cpp
```

### From source code

```
pip install git+https://github.com/gmagno/nb-cpp.git
```

or

```
git clone git@github.com:gmagno/nb-cpp.git
cd nb-cpp/
make install
```

## Example Usage

Just run:

```python
import matplotlib as mpl  # don't forget to `pip install matplotlib` first
import matplotlib.pyplot as plt
import nb_cpp
hsv = nb_cpp.compute(
    imw=32, imh=32, # for more details, run: help(nb_py.compute)
)
rgb = mpl.colors.hsv_to_rgb(hsv)
plt.figure()
plt.imshow(rgb)
plt.show()
```


## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details


