src/GamIO/Ggnuplot1D.cc
void GPXYLoad(std::ofstream& ofstr, const GPdat& G)
  {
  if(G.basedir  != "")
    ofstr << "cd \"" << G.basedir << "\"\n";		// Switch to base dir
  SetLineType(ofstr, G.join);				// Set plot line type
  ofstr << "set noparametric\n";			// Plot x vs y simple 1D
  if(G.term != "")
    ofstr << "set terminal " << G.term    << "\n";	// Set the terminal type
  if(G.outfile != "")
    ofstr << "set output \"" << G.outfile << "\"\n";	// Set the output name
  if(G.nokey)        ofstr << "set nokey\n";		// Set nokey (no auto filename)
  if(G.title!= "")   ofstr << "set title \"" 		// Label with title
                           << G.title<< "\"\n";
  if(G.xlabel != "") ofstr << "set xlabel \""		// Label x-axis
                             << G.xlabel << "\"\n";
  if(G.ylabel != "") ofstr << "set ylabel \""		// Label y-axis 
                             << G.ylabel << "\"\n";
  if(G.tics=="out")  ofstr << "set tics out\n";	// Set axis tic marks out

  if(!G.border) ofstr << "set noborder\n";		// Removes gnuplot border
  if(!G.xtics)  ofstr << "set noxtics\n";		// Stop x-axis tic marks
  if(!G.ytics)  ofstr << "set noytics\n";		// Stop y-axis tic marks
  if(!G.xaxis)  ofstr << "set noxzeroaxis\n";		// Stop x-axis draw
  if(!G.yaxis)  ofstr << "set noyzeroaxis\n";		// Stop y-axis draw
  if(G.xsize && G.ysize) 				// Scale the plot
    ofstr << "set size " << G.xsize << ", "
          << G.ysize     << "\n";
  ofstr << "plot \"" << G.data << "\"\n";		// Command for plot
  }
/* These functions are used to place the Gnuplot commands into the Gnuplot
   ASCII load file that will be called on to invoke plotting. It uses the
   parameters found in the GPdat structure as an indication of how the user
   wishes the output plot to appear.                                         */
These functions are used to place the Gnuplot commands into the Gnuplot
ASCII load file that will be called on to invoke plotting. It uses the
parameters found in the GPdat structure as an indication of how the user
wishes the output plot to appear.
These functions are used to place the Gnuplot commands into the Gnuplot ASCII load file that will be called on to invoke plotting . It uses the parameters found in the GPdat structure as an indication of how the user wishes the output plot to appear .
void GPXYLoad(std::ofstream& ofstr, const GPdat& G)
  {
  if(G.basedir  != "")
    ofstr << "cd \"" << G.basedir << "\"\n";		
  SetLineType(ofstr, G.join);				
  ofstr << "set noparametric\n";			
  if(G.term != "")
    ofstr << "set terminal " << G.term    << "\n";	
  if(G.outfile != "")
    ofstr << "set output \"" << G.outfile << "\"\n";	
  if(G.nokey)        ofstr << "set nokey\n";		
  if(G.title!= "")   ofstr << "set title \"" 		
                           << G.title<< "\"\n";
  if(G.xlabel != "") ofstr << "set xlabel \""		
                             << G.xlabel << "\"\n";
  if(G.ylabel != "") ofstr << "set ylabel \""		
                             << G.ylabel << "\"\n";
  if(G.tics=="out")  ofstr << "set tics out\n";	
  if(!G.border) ofstr << "set noborder\n";		
  if(!G.xtics)  ofstr << "set noxtics\n";		
  if(!G.ytics)  ofstr << "set noytics\n";		
  if(!G.xaxis)  ofstr << "set noxzeroaxis\n";		
  if(!G.yaxis)  ofstr << "set noyzeroaxis\n";		
  if(G.xsize && G.ysize) 				
    ofstr << "set size " << G.xsize << ", "
          << G.ysize     << "\n";
  ofstr << "plot \"" << G.data << "\"\n";		
  }
void GPXYLoad ( std :: ofstream & ofstr , const GPdat & G ) { if ( G . basedir != " " ) ofstr << " \" " << G . basedir << " \" \n " ; SetLineType ( ofstr , G . join ) ; ofstr << " \n " ; if ( G . term != " " ) ofstr << " " << G . term << " \n " ; if ( G . outfile != " " ) ofstr << " \" " << G . outfile << " \" \n " ; if ( G . nokey ) ofstr << " \n " ; if ( G . title != " " ) ofstr << " \" " << G . title << " \" \n " ; if ( G . xlabel != " " ) ofstr << " \" " << G . xlabel << " \" \n " ; if ( G . ylabel != " " ) ofstr << " \" " << G . ylabel << " \" \n " ; if ( G . tics == " " ) ofstr << " \n " ; if ( ! G . border ) ofstr << " \n " ; if ( ! G . xtics ) ofstr << " \n " ; if ( ! G . ytics ) ofstr << " \n " ; if ( ! G . xaxis ) ofstr << " \n " ; if ( ! G . yaxis ) ofstr << " \n " ; if ( G . xsize && G . ysize ) ofstr << " " << G . xsize << " " << G . ysize << " \n " ; ofstr << " \" " << G . data << " \" \n " ; }
These functions are used to place the Gnuplot commands into the Gnuplot
ASCII load file that will be called on to invoke plotting.
These functions are used to place the Gnuplot commands into the Gnuplot ASCII load file that will be called on to invoke plotting .
// Switch to base dir // Set plot line type // Plot x vs y simple 1D // Set the terminal type // Set the output name // Set nokey (no auto filename) // Label with title // Label x-axis // Label y-axis  // Set axis tic marks out // Removes gnuplot border // Stop x-axis tic marks // Stop y-axis tic marks // Stop x-axis draw // Stop y-axis draw // Scale the plot // Command for plot