added pdf output for plots