Re: rplot_counts

From: John Houck <houck_at_email.domain.hidden>
Date: Tue, 25 Apr 2006 11:50:44 -0400
On Tue, Apr 25, 2006 at 11:15 -0400, John E. Davis wrote:
> It looks like get/set_plot_options is exactly what I want.  There is
> one undocumented field that I do not quite understand: x_unit.  This
> changed from 1 to 7 after I made a call to plot_unit("kev").  What is
> the meaning of this field?  I assume 7 implies keV, but what does,
> say, 3 represent?
>

The supported values for x_unit are currently available as
intrinsic variables.  The current list is:

% energies
U_EV
U_KEV
U_MEV
U_GEV
U_TEV

% frequencies
U_HZ
U_KHZ
U_MHZ
U_GHZ

% wavelengths
U_NANOMETER
U_ANGSTROM
U_MILLIMETER
U_CENTIMETER
U_METER

I had considered supporting strings so that you could use
p.x_unit = "TeV", but unfortunately, I didn't get that done
before you asked about it.  Until that's available, perhaps you
could use an associative array:

   variable X_Unit = Assoc_Type[];
   X_Unit["TeV"] = U_TEV;
   ...

so that

   p = get_plot_options();
   p.x_unit = X_Unit["keV"];

would work.

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 Apr 25 2006 - 11:50:58 EDT

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:44 EDT