|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox gauss_plot_fn.pro
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.
Parameters | |
params |
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 |
The minimum channel number of the current plot window's x-axis. |
maxchan |
The maximum channel number of the current plot window's x-axis. |
chanperpix |
The channels per pixel of the current plot window's x-axis. This value is always positive. |
Keywords | |
count |
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. |