Added legend to lineplotter