3d graphing, better color handling