diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/onedspec/splot/replot.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'noao/onedspec/splot/replot.x')
-rw-r--r-- | noao/onedspec/splot/replot.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noao/onedspec/splot/replot.x b/noao/onedspec/splot/replot.x new file mode 100644 index 00000000..9157846a --- /dev/null +++ b/noao/onedspec/splot/replot.x @@ -0,0 +1,27 @@ +include <gset.h> + +# REPLOT -- Replot the current array + +procedure replot (gfd, gt, x, y, npts, clear) + +pointer gfd +pointer gt +real x[ARB] +real y[ARB] +int npts +int clear + +int wc, gstati() + +begin + if (clear == YES) { + wc = gstati (gfd, G_WCS) + call gclear (gfd) + call gseti (gfd, G_WCS, wc) + call gt_ascale (gfd, gt, x, y, npts) + call gt_swind (gfd, gt) + call gt_labax (gfd, gt) + } + + call gt_plot (gfd, gt, x, y, npts) +end |