54 os <<
"set term pngcairo" <<
nl
55 <<
"set output \"" <<
word(
g.title()) <<
".png\"" <<
nl
56 <<
"set title " <<
g.title() <<
" 0,0" <<
nl <<
"show title" <<
nl
57 <<
"set xlabel " <<
g.xName() <<
" 0,0" <<
nl <<
"show xlabel" <<
nl
58 <<
"set ylabel " <<
g.yName() <<
" 0,0" <<
nl <<
"show ylabel" <<
nl;
63 os << (nplots++ ?
", \\" :
"plot \\") <<
nl;
64 os <<
"'-' title " << iter()->name() <<
" with lines";
66 os <<
"; pause -1" <<
nl;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const uniformDimensionedVectorField & g
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Output in gnuplot (http://www.gnuplot.info) format.
void write(const graph &, Ostream &os) const
Write.
gnuplotWriter()=default
Default construct.
Abstract base class for a graph writer.
void writeXY(const scalarField &x, const scalarField &y, Ostream &) const
Class to create, store and output qgraph files.
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
OBJstream os(runTime.globalPath()/outputName)
graph::writer graphWriter
constexpr char nl
The newline '\n' character (0x0a).
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.