Produced by IDL 7.1.1
User Documentation

./toolbox
gauss_plot_fn.pro

Last modification date:
Wed Sep 28 13:27:11 2016

gauss_plot_fn

function gauss_plot_fn(params, minchan, maxchan, chanperpix, count=variable)

Generate x, y pairs to be plotted (x in channels) given a structure describing the number of gaussians and the current limits and resolution of the plotter.

This is used by gshow to call oplotfn so that the function is used to regenerate the gaussian values to be plotted as the plotter changes (e.g. zooming) which might otherwise lead to poorly sampled gaussians on unzoomed plots being unnecessarily jagged when zoomed in.

Most users will never use this directly although it could be used as a template when generating functions to use with oplotfn.

Returns
arr - 2D array, arr[0,*] is the x values and arr[1,*] the y.
Version
$Id$

Parameters
params
in, required
structure
The fields in this structure are the names of the last 3 parameters in make_gauss_data. See the documention there for more information (fields are a, noise and offset).
minchan
in, required
double
The minimum channel number of the current plot window's x-axis.
maxchan
in, required
double
The maximum channel number of the current plot window's x-axis.
chanperpix
in, required
double
The channels per pixel of the current plot window's x-axis. This value is always positive.

Keywords
count
out, required
variable
The total number of points in arr to plot. Should be equal to 0 (do not plot any points) or the number of elements along the second axis of arr.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:39 2016