add newlines at the end of files
code re-use for original plot item filter() and getRange() and applyAxis()