r312: *** empty log message ***
[ctsim.git] / tools / if2.cpp
index c49b5a4e482ddd555c8483fe54ef8b256977c609..571e8d63294ca1ad6947e0b7fae136139c647030 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: if2.cpp,v 1.4 2000/12/22 04:18:00 kevin Exp $
+**  $Id: if2.cpp,v 1.5 2000/12/23 18:12:35 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -46,7 +46,7 @@ static struct option my_options[] =
   {0, 0, 0, 0}
 };
 
-static const char* g_szIdStr = "$Id: if2.cpp,v 1.4 2000/12/22 04:18:00 kevin Exp $";
+static const char* g_szIdStr = "$Id: if2.cpp,v 1.5 2000/12/23 18:12:35 kevin Exp $";
 
 void 
 if2_usage (const char *program)
@@ -237,10 +237,18 @@ if2_main (int argc, char *const argv[])
     plotFile.addColumn (0, plot_xaxis);\r
     plotFile.addColumn (1, v1[opt_columnPlot]);\r
     plotFile.addColumn (2, v2[opt_columnPlot]);\r
-    plotFile.setTitle ("Column Plot");\r
-    plotFile.setXLabel ("Column");\r
-    plotFile.setYLabel ("Pixel Value");\r
-    \r
+    std::ostringstream os;\r
+    os << "Column " << opt_columnPlot << " Comparison";\r
+    plotFile.addDescription (os.str().c_str());\r
+    std::string title("title ");\r
+    title += os.str();\r
+    plotFile.addEzsetCommand (title.c_str());\r
+    plotFile.addEzsetCommand ("xlabel Column");\r
+    plotFile.addEzsetCommand ("ylabel Pixel Value");\r
+    plotFile.addEzsetCommand ("box");\r
+    plotFile.addEzsetCommand ("grid");\r
+    plotFile.addEzsetCommand ("xticks major 5");\r
+\r
     plotFile.fileWrite (strOutFile.c_str());\r
     \r
 #if HAVE_SGP
@@ -284,9 +292,17 @@ if2_main (int argc, char *const argv[])
     plotFile.addColumn (0, plot_xaxis);
     plotFile.addColumn (1, v1Row);
     plotFile.addColumn (2, v2Row);
-    plotFile.setTitle ("Row Plot");
-    plotFile.setXLabel ("Row");
-    plotFile.setYLabel ("Pixel Value");
+    std::ostringstream os;\r
+    os << "Row " << opt_rowPlot << " Comparison";\r
+    plotFile.addDescription (os.str().c_str());\r
+    std::string title("title ");\r
+    title += os.str();\r
+    plotFile.addEzsetCommand (title.c_str());\r
+    plotFile.addEzsetCommand ("xlabel Row");\r
+    plotFile.addEzsetCommand ("ylabel Pixel Value");\r
+    plotFile.addEzsetCommand ("box");\r
+    plotFile.addEzsetCommand ("grid");\r
+    plotFile.addEzsetCommand ("xticks major 5");\r
     
     plotFile.fileWrite (strOutFile.c_str());