[Fixes #294,#333] patch: index unique cdata into colormap and retrieve color

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>
Merge branch 'master' of git://github.com/okomarov/matlab2tikz into okomarov-master
Merge branch 'okomarov-master'