removed global_context requirement in plotter.c, replaced with local copies of required options