aboutsummaryrefslogtreecommitdiff
path: root/noao/onedspec/splot/replot.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /noao/onedspec/splot/replot.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/onedspec/splot/replot.x')
-rw-r--r--noao/onedspec/splot/replot.x27
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