Skip to main content

Newton Basins implementation in C++ (pybind11)

Project description

# 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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nb-cpp, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl (80.2 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl (100.0 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl (80.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl (99.6 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl (80.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl (99.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl (80.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl (100.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size nb_cpp-0.0.8.tar.gz (1.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page