generate pdf
add plot lines