src/GamIO/Ggnuplot1D.cc
/* These are the simplest functions to use when using Gnuplot from within GAMMA
   to produces interactive plots on the screen. These will generate an ASCII
   data file, generate a Gnuplot ASCII load file, then call Gnuplot to use the
   load file and display the plot to screen. Since many different parameters
   can be used to change both the way the data is output and the way the data
   is displayed, the most convenient function calls will make use of a GPdat
   structure with the proper setttings previously specified.                  */
These are the simplest functions to use when using Gnuplot from within GAMMA
to produces interactive plots on the screen. These will generate an ASCII
data file, generate a Gnuplot ASCII load file, then call Gnuplot to use the
load file and display the plot to screen. Since many different parameters
can be used to change both the way the data is output and the way the data
is displayed, the most convenient function calls will make use of a GPdat
structure with the proper setttings previously specified.
These are the simplest functions to use when using Gnuplot from within GAMMA to produces interactive plots on the screen . These will generate an ASCII data file generate a Gnuplot ASCII load file then call Gnuplot to use the load file and display the plot to screen . Since many different parameters can be used to change both the way the data is output and the way the data is displayed the most convenient function calls will make use of a GPdat structure with the proper setttings previously specified .
void Gnuplot1D(const std::string& name, const row_vector &vx,
                    int ri, double xmin, double xmax, int join, double cutoff)
  {
  std::string Afile = name + ".asc";		
  std::string Gfile = name + ".gnu";		
  GP_1D(Afile, vx, ri, xmin, xmax, cutoff);	
  GP_1Dplot(Gfile, Afile, join);		
  }
void Gnuplot1D ( const std :: string & name , const row_vector & vx , int ri , double xmin , double xmax , int join , double cutoff ) { std :: string Afile = name + " " ; std :: string Gfile = name + " " ; GP_1D ( Afile , vx , ri , xmin , xmax , cutoff ) ; GP_1Dplot ( Gfile , Afile , join ) ; }
These are the simplest functions to use when using Gnuplot from within GAMMA
to produces interactive plots on the screen.
These are the simplest functions to use when using Gnuplot from within GAMMA to produces interactive plots on the screen .
// Set data file name // Set gnuplot load filename // Make data file (ASCII) // Make gnuplot load file