- Description
 
An instance of the Gnuplot class is a pipe to a running gnuplot. You can use write to send orders to It, or use some of the methods defined in this class to do It. 
 
 
 
- 
Inherit Pipe
 
 Pipe
 
- 
Method write
 
void module.Gnuplot.Gnuplot()->write(string what) 
- Description
 
This method is just like the analog method in class Pipe, but adds a '\n' for convenience. 
 
 
 
- 
Method quit
 
void module.Gnuplot.Gnuplot()->quit() 
- Description
 
Closes the running gnuplot. 
 
 
 
- 
Method plot
 
void module.Gnuplot.Gnuplot()->plot(string func) 
- Description
 
Plots f(x). Example: plot( "sin(x)" ); 
 
 
 
- 
Method parametricPlot
 
void module.Gnuplot.Gnuplot()->parametricPlot(string func) 
- Description
 
When doing 2D parametric plots, the parameter is t. Example: to draw a circle, just do parametricPlot( " cos(t), sin(t) " ); 
 
 
 
- 
Method splot
 
void module.Gnuplot.Gnuplot()->splot(string func) 
- Description
 
Plots f(x,y). Example: plot("sin(x) * cos(y)") ; 
 
 
 
- 
Method parametricSplot
 
void module.Gnuplot.Gnuplot()->parametricSplot(string func) 
- Description
 
When doing 3D parametric plots, the parameters are u and v. 
 
 
 
- 
Method surfaceSplot
 
void module.Gnuplot.Gnuplot()->surfaceSplot(string func) 
- Description
 
Uses the pm3d option to draw surface maps. 
 
 
 
- 
Method set
 
void module.Gnuplot.Gnuplot()->set(string what) 
- Description
 
Sets some property of gnuplot. 
 
 
 
- 
Method unset
 
void module.Gnuplot.Gnuplot()->unset(string what) 
- Description
 
Unsets some property of gnuplot. 
 
 
 
- 
Method setGrid
 
void module.Gnuplot.Gnuplot()->setGrid() 
- Description
 
Enables the grid. 
 
 
 
- 
Method unsetGrid
 
void module.Gnuplot.Gnuplot()->unsetGrid() 
- Description
 
Disables the grid. 
 
 
 
- 
Method setParametric
 
void module.Gnuplot.Gnuplot()->setParametric() 
- Description
 
Enables the parametric mode. 
 
 
 
- 
Method unsetParametric
 
void module.Gnuplot.Gnuplot()->unsetParametric() 
- Description
 
Disables the parametric mode. 
 
 
 
- 
Method update
 
void module.Gnuplot.Gnuplot()->update() 
- Description
 
Updates the screen 
 
 
 
- 
Method save2postscript
 
void module.Gnuplot.Gnuplot()->save2postscript(string filename) 
- Description
 
Saves a postscript copy of the screen. This method has something similar to a bug: if your screen has a parametric plot on It, this doesn't work. In that case, please do setParametric() ; save2postscript() ; unsetParametric(); 
 
 
 |