-
-#if HAVE_SGP
- SGPDriver driver ("Row Plot");
- SGP sgp (driver);
- EZPlot ezplot (sgp);
- ezplot.ezset ("clear.");
- ezplot.ezset ("xticks major 5.");
- ezplot.ezset ("title Row Plot");
- ezplot.ezset ("xlabel Row");
- ezplot.ezset ("ylabel Pixel");
- ezplot.ezset ("box.");
- ezplot.ezset ("grid.");
- ezplot.addCurve (plot_xaxis, v1Row, im_in1.nx());
- ezplot.addCurve (plot_xaxis, v2Row, im_in2.nx());
- ezplot.plot();
- std::cout << "Press enter to continue" << flush;
- cio_kb_getc();
-#endif
- delete plot_xaxis;\r
- delete v1Row;\r
- delete v2Row;\r
+
+ PlotFile plotFile (3, ny);
+
+ plotFile.addColumn (0, plot_xaxis);
+ plotFile.addColumn (1, v1Row);
+ plotFile.addColumn (2, v2Row);
+ std::ostringstream os;
+ os << "Row " << opt_rowPlot << " Comparison";
+ plotFile.addDescription (os.str().c_str());
+ std::string title("title ");
+ title += os.str();
+ plotFile.addEzsetCommand (title.c_str());
+ plotFile.addEzsetCommand ("xlabel Row");
+ plotFile.addEzsetCommand ("ylabel Pixel Value");
+ plotFile.addEzsetCommand ("box");
+ plotFile.addEzsetCommand ("grid");
+ plotFile.addEzsetCommand ("xticks major 5");
+
+ plotFile.fileWrite (strOutFile.c_str());
+
+ delete plot_xaxis;
+ delete v1Row;
+ delete v2Row;