-#if HAVE_SGP
- SGPDriver driver ("Column Plot");
- SGP sgp (driver);
- EZPlot ezplot (sgp);
- ezplot.ezset ("clear.");
- ezplot.ezset ("xticks major 5.");
- ezplot.ezset ("xlabel Column");
- ezplot.ezset ("title Column Plot");
- ezplot.ezset ("ylabel Pixel");
- ezplot.ezset ("box.");
- ezplot.ezset ("grid.");
- ezplot.addCurve (plot_xaxis, v1[opt_columnPlot], im_in1.ny());
- ezplot.addCurve (plot_xaxis, v2[opt_columnPlot], im_in2.ny());
- ezplot.plot();
- std::cout << "Press enter to continue" << flush;
- cio_kb_getc();\r
-#endif\r
- delete plot_xaxis;
+ \r
+ PlotFile plotFile (3, nx);\r
+ \r
+ plotFile.addColumn (0, plot_xaxis);\r
+ plotFile.addColumn (1, v1[opt_columnPlot]);\r
+ plotFile.addColumn (2, v2[opt_columnPlot]);\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
+ delete plot_xaxis;