Skip to main content

Virtru SDK Python project

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:

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 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 virt, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size virt-1.1.1-cp37-cp37m-manylinux1_x86_64.whl (4.2 MB) File type Wheel Python version cp37 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page