plotter for distance map and histogram