Some tools for making colormaps
Project description
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")
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
rainbowpy-0.3.1.tar.gz
(19.6 kB
view details)
Built Distribution
rainbowpy-0.3.1-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file rainbowpy-0.3.1.tar.gz
.
File metadata
- Download URL: rainbowpy-0.3.1.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa7cc64bd1cef6e09087ca9c9726a36ef01020c09bc8c5443559cc62f9d2794 |
|
MD5 | 010df2a2af1183e86192846d16d6ab1d |
|
BLAKE2b-256 | 22fc135a2b362ca314f1829529c6e6b0576f9b507b0ed2c946bef95af7757717 |
File details
Details for the file rainbowpy-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: rainbowpy-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 042686a9c49a31bf48f5fe7b1190e778c89b72c4504a638a5216ffe39a5b9580 |
|
MD5 | d85e567fda93b04709c2f5951badfd3a |
|
BLAKE2b-256 | 885d6ffa30ac2058048e7b50a00e91102b78fa709758fed6d85eadb689cc93ba |