Index: trunk/Ohana/src/opihi/cmd.data/Makefile
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/Makefile	(revision 3104)
+++ trunk/Ohana/src/opihi/cmd.data/Makefile	(revision 3105)
@@ -72,4 +72,5 @@
 $(SDIR)/peak.$(ARCH).o		\
 $(SDIR)/plot.$(ARCH).o		\
+$(SDIR)/dot.$(ARCH).o		\
 $(SDIR)/point.$(ARCH).o		\
 $(SDIR)/ps.$(ARCH).o		\
Index: trunk/Ohana/src/opihi/cmd.data/dot.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/dot.c	(revision 3105)
+++ trunk/Ohana/src/opihi/cmd.data/dot.c	(revision 3105)
@@ -0,0 +1,81 @@
+# include "data.h"
+
+int dot (int argc, char **argv) {
+  
+  int N, Npts, Ngraph;
+  Graphdata graphmode;
+  float x, y;
+
+  /* choose the appropriate graphing window */
+  Ngraph = -1;
+  if ((N = get_argument (argc, argv, "-n"))) {
+    remove_argument (N, &argc, argv);
+    Ngraph = atof (argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+  if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
+
+  /* evaluate various plotting options */
+  if ((N = get_argument (argc, argv, "-lt"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.ltype = atof(argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+  if ((N = get_argument (argc, argv, "-lw"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.lweight = atof(argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+  if ((N = get_argument (argc, argv, "-pt"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.ptype = atof(argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+  if ((N = get_argument (argc, argv, "+eb"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.ebar = TRUE;
+  }
+  if ((N = get_argument (argc, argv, "-eb"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.ebar = FALSE;
+  }
+  if ((N = get_argument (argc, argv, "-sz"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.size = atof(argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+  if ((N = get_argument (argc, argv, "-c"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.color = GetColor (argv[N]);
+    if (graphmode.color == -1) return (FALSE);
+    remove_argument (N, &argc, argv);
+  }
+  /* only -x 2 makes sense here
+  if ((N = get_argument (argc, argv, "-x"))) {
+    remove_argument (N, &argc, argv);
+    graphmode.style = atof(argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+  */
+  graphmode.style = 2;
+
+  if (argc != 3) {
+    fprintf (stderr, "USAGE: plot <x> <y>\n");
+    return (FALSE);
+  }
+  x = atof(argv[1]);
+  y = atof(argv[2]);
+
+  /* set plotting options (these are sticky) */
+  SetGraph (graphmode);
+
+  /* set errorbar mode (these are NOT sticky) */
+  graphmode.etype = 0;
+
+  if (!PrepPlotting (1, &graphmode)) return (FALSE);
+  
+  PlotVector (1, &x);
+  PlotVector (1, &y);
+  
+  return (TRUE);
+}
Index: trunk/Ohana/src/opihi/cmd.data/init.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/init.c	(revision 3104)
+++ trunk/Ohana/src/opihi/cmd.data/init.c	(revision 3105)
@@ -53,4 +53,5 @@
 int peak             PROTO((int, char **));
 int plot             PROTO((int, char **));
+int dot              PROTO((int, char **));
 int point            PROTO((int, char **));
 int pop              PROTO((int, char **));
@@ -152,4 +153,5 @@
   {"peak",	   peak,	     "find vector peak in range"},
   {"plot",    	   plot,	     "plot a pair of vectors"},
+  {"dot",    	   dot,	             "plot a single point"},
   {"point",	   point,	     "load overlay with single point"},
   {"ps",      	   ps,		     "define labels for plot"},
Index: trunk/Ohana/src/opihi/cmd.data/plot.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/plot.c	(revision 3104)
+++ trunk/Ohana/src/opihi/cmd.data/plot.c	(revision 3105)
@@ -123,4 +123,2 @@
 
 }
-
-
