Fix plot_params_2d so that it is not painfully slow with PDF output