src/GamIO/Ggnuplot1D.cc
/* 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