-#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;
+
+ PlotFile plotFile (3, nx);
+
+ plotFile.addColumn (0, plot_xaxis);
+ plotFile.addColumn (1, v1[opt_columnPlot]);
+ plotFile.addColumn (2, v2[opt_columnPlot]);
+ std::ostringstream os;
+ os << "Column " << opt_columnPlot << " Comparison";
+ plotFile.addDescription (os.str().c_str());
+ std::string title("title ");
+ title += os.str();
+ plotFile.addEzsetCommand (title.c_str());
+ plotFile.addEzsetCommand ("xlabel Column");
+ plotFile.addEzsetCommand ("ylabel Pixel Value");
+ plotFile.addEzsetCommand ("box");
+ plotFile.addEzsetCommand ("grid");
+ plotFile.addEzsetCommand ("xticks major 5");
+
+ plotFile.fileWrite (strOutFile.c_str());
+
+ delete plot_xaxis;