Restructured TS map computation

As close to final as it could get today.
Can you add a test that executes this function or is that very difficult with a `LinearSegmentedColormap`?