fixes to lineplotter, now it also draws scale