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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nb_cpp-0.0.5.tar.gz
(2.7 MB
view details)
File details
Details for the file nb_cpp-0.0.5.tar.gz
.
File metadata
- Download URL: nb_cpp-0.0.5.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0edb83fe48afe13b95e5961efc6ef127e6ee7f16b9c0896aecde899d323bb75 |
|
MD5 | 04634a5afabf287bbff066948710ccf0 |
|
BLAKE2b-256 | 198d288c2c7f3646120bd913b7b29f432c13a3eb30b6d32efc8f39af142fac7a |