add a routine for colored plot