status
rainbowpy
some of my own custom color tools
pip install rainbowpy
quick intro
rainbowpy is a simple tool to handle building color maps from a list of colors. There will likely me more features in the future.
You can create a YAML file and place it in:
$HOME/.rainbowpy/custom_maps.yml
which will be read on import will add the created color maps to your mpl library:
The format is
apples:
- "#28CC5F"
- "#29D48"
- "#F3232"
iri:
- "#FEFBE9"
- "#FCF7D5"
- "#f5f3c1"
- "#eaf0b5"
- "#ddecb5"
- "#d0e7ca"
- "#c2e3d2"
- "#b5ddd8"
- "#a8d8dc"
- "#9bd2e1"
- "#8dcbe4"
- "#81c4e7"
- "#7bbce7"
- "#7eb2e4"
- "#88a5dd"
- "#9398d2"
- "#9b8ac4"
- "#9d7db2"
- "#9a709e"
- "#906388"
- "#805770"
- "#684957"
- "#46353a"
import matplotlib.pyplot as plt
import rainbowpy
N = 1000
array_dg = np.random.uniform(0, 10, size=(N, 2))
colors = np.random.uniform(-2, 2, size=(N,))
fig, ax = plt.subplots()
ax.scatter(array_dg[:, 0], array_dg[:, 1], c=colors, cmap="iri")
Icons made by Smashicons from www.flaticon.com
Metadata
Release files for rainbowpy 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rainbowpy-0.4.0.tar.gz | 20.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rainbowpy-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.5 kB
Release files / rainbowpy-0.4.0.tar.gz
| Download URL | rainbowpy-0.4.0.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
756857740e5ad4997f8069aefd5c75df243ad9f6a0f34ebc7bab1cbc6ec5a70a
|
|
BLAKE2b-256 checksum How to use checksums |
c185489e598f9f00c80d1daee42402975f9380d459dc6977be77abb32b4c5c93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1
|
Release files / rainbowpy-0.4.0-py3-none-any.whl
| Download URL | rainbowpy-0.4.0-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e608f390374a9ca957d6df82cf69de1e970ed7dcd125f89c16b3d4919ef13641
|
|
BLAKE2b-256 checksum How to use checksums |
49cac795cb2f69697d46be7224346fec7ba0c93fa4e2f9388ccd663010429176
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1
|