Extract `generateColorDefinitions`

This simplifies `saveToFile`
Fix #406: signal quiver3 as 3D plot
Merge branch 'simplify'

Tested on R2014a