do not use globals in plot_params()