improved battery plot and svg