plot as pdf