further reorganized plotter and added legend along side