added a trace plotter for discrete targets