added lineshape plotting