# 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
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
Release files for nb-cpp 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nb_cpp-0.0.8.tar.gz | 1.3 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl | CPython 3.5 | CPython 3.5 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl | CPython 3.4 | CPython 3.4 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl | CPython 3.4 | CPython 3.4 pymalloc | Linux glibc 2.5+ x86-32 | Details |
Total release size: 721.3 kB
Release files / nb_cpp-0.0.8.tar.gz
| Download URL | nb_cpp-0.0.8.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a50faa3df07767ecbc47e79b0b9a9fd1c0b7c9f26e0051b1e70f2da8e1f839cc
|
|
BLAKE2b-256 checksum How to use checksums |
e49d8d81e2d7c2dba0d8f0300f1d467562a17ec6f17e196d8f65de9d2527797a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl
| Download URL | nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl |
|---|---|
| Size | 100.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
cebbf3cd66f8c9de2378d920c572611ebee9c1aa40f30d3e214ae2edb52140de
|
|
BLAKE2b-256 checksum How to use checksums |
c28a9b3e0c1eda735a1414d37313241564fdda3afa1a92b4dbc249f8785dbbba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl
| Download URL | nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl |
|---|---|
| Size | 80.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
96849763dcf414849efcf5e843c190dc0ed5172acac5c13c354866f9269f88bd
|
|
BLAKE2b-256 checksum How to use checksums |
9c5fa167ed2dfeb659780c3e8a28a7aec1983ebb6a50e68a7b8aa25a48c1b939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 99.7 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
fa788212eb236de42af4c71a6d1a1fc8f3b1c3c7bdc7aa3b68291e2f0e113be6
|
|
BLAKE2b-256 checksum How to use checksums |
c9bb9a233a4912dc8c30281645180e07761d3b7ba4c973d3bce9c867eafae123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl
| Download URL | nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl |
|---|---|
| Size | 80.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
b91efd1edbe36f7c16e6022113c01df0cd11ceb2716a410f91984d5789f7d50c
|
|
BLAKE2b-256 checksum How to use checksums |
3b76b053fcaac401ba48509111fccdbaead99463312a0fa4ee3c80464737fc99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl
| Download URL | nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl |
|---|---|
| Size | 99.6 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
58db53d627df7dd2e2f4794f276cf0e863b3456413d67c6f33d850f3eb26730f
|
|
BLAKE2b-256 checksum How to use checksums |
d49bd48776f4d3dcbda1bccc86f6d3f60aa8800fd711bc362d533bc4077d4aa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl
| Download URL | nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl |
|---|---|
| Size | 80.2 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
2f2c50b44c72cfa1f54934096c84d7e6aedc7436ea51f872175f0b7686a5ea2b
|
|
BLAKE2b-256 checksum How to use checksums |
be83b5778581169ab7fe0ab37083abe15c31aaef9baa2afd4c7f0bc05651076d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl
| Download URL | nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl |
|---|---|
| Size | 100.0 kB |
| Tags | CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
734173aff25269199c908030fa7dfd5c54ebcdede99fc626e2d836727a4f3c59
|
|
BLAKE2b-256 checksum How to use checksums |
95f3eacf19939eb08106268602a8332ae52899c0e4ab93130853a3a8823dd618
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl
| Download URL | nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl |
|---|---|
| Size | 80.2 kB |
| Tags | CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
58b87a0c3c871049a4a3607eb711027078e4a7d2463f228bbdda15465b582317
|
|
BLAKE2b-256 checksum How to use checksums |
1a455c0c89d6b3a1a12f85a968be41f289c2b374e6784c8bfdc92e201fc868b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|