now exports plots in pdf