Skip to main content

Assigns rgb colors to points on sphere.

Project description

scmap

Assigns rgb colors to points on sphere (orientations in 3D).

Installation

Install the module using pip install scmap or clone the repository.

Use

The simplest example involves coloring random 3D vectors.

import scmap
import numpy as np

vectors = np.random.standard_normal(size=(1000,3))
coloring = scmap.Ico() 
colors = coloring(vectors)

Sphere colormap (scmap) can be oriented by either perumuting vector coordinates, rotating vectors, or defining a z-direction. Check the examples to see how this is accomplished.

Different colorspheres

Scmap module includes 4 special spere colormaps. Uno is suitable when orientations are predominantly uindirectional, Duo is suitable when orientations are predominantly in a plane, Tre is suitable when orentations are to be interpeted as being predominantly in x, y or z direction, Ico is suitable when there is no predominant orientation. We also include 2 simpler colormaps: Inc which assigns colors based on inclination, and Azy which colors azymuth.

Project details


Download files

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

Source Distribution

scmap-0.1.0.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

scmap-0.1.0-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page