isis REF

From: John E. Davis <davis_at_email.domain.hidden>
Date: Tue, 7 Feb 2006 13:07:15 -0500
I tend to plot flux as a density and counts as the bin-inetgral.  Is
there any way to get the current plot setting?  I would like to use
something like:

     .
     .
    % Plot counts as a bin-integral
    mode = get_plot_bin_density_or_integral ();
    plot_bin_integral ();
    plot_data (1);
    
    % Restore the mode
    if (mode == plot_bin_integral_mode)
      plot_bin_integral ();
    else
      plot_bin_density ();

As you can see, this is rather clunky.  Although I can live with
something like that, it is better to have something like
"push_plot_settings" and "pop_plot_settings".  Then I could simply
write:

   push_plot_settings ();
   yrange (,);
   plot_bin_integral ();
   plot_data (1);
   pop_plot_settings ();

Here, push_plot_settings() would save the current settings on a
stack, but not change anything so that the settings remain in effect,
and pop_plot_settings() would retore the previous settings (ranges,
titles, labels, etc).

Thanks,
--John
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Tue Feb 07 2006 - 13:07:44 EST

This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:51 EDT