Messy experimental code for color analyses with numpy and matplotlib