Added log option to pdfplot