David P. Huenemoerder <dph_at_email.domain.hidden>Or, how about an intermediate value: > > s = get_plot_settings(); > ... > put_plot_settings(s); > >That way, I could customize fields in s or keep copies without >worrying about how many I pushed. That would also be useful for cases such as: set_bin_density (); yrange (0.0, 0.03); flux_settings = get_plot_settings (); set_bin_integral (); yrange (,); count_settings = get_plot_settings (); . . s = get_plot_settings (); put_plot_settings (flux_settings); plot_data_flux (3); oplot_model_flux (3); put_plot_settings (s); If get/put_plot_settings existed, then it would be easy to create push/pop_plot_settings. Then with the appropriate definition of push_plot_settings, the latter part of the above could be simplified to: push_plot_settings (flux_settings); plot_data_flux (3); oplot_model_flux (3); pop_plot_settings (); --JohnReceived on Tue Feb 07 2006 - 13:39:42 EST
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:44 EDT