added TRACE color tables, and extracted into a single function the code that converts the RGB triple into a dictionary understood by the plotting code.