Helps explain clustering with colors
For best results, use Python 3, Python 2.7 has some integer division problems that affect how the images are rendered.
This code depends on my data mining library hew
git clone https://github.com/JeffreyMFarley/hew.git
cd hew
python3 setup.py install
cd ..
git clone https://github.com/JeffreyMFarley/clustersplaining.git
# Generate the base palette image
python3 display_swatches.py
# Generate an 8 color palette
python3 build_clusters.py
# See all the available options
python3 build_clusters.py --help