38 namespace graphWriters
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;
Output in gnuplot (http://www.gnuplot.info) format.
constexpr char nl
The newline '\n' character (0x0a)
Macros for easy insertion into run-time selection tables.
Abstract base class for a graph writer.
Class to create, store and output qgraph files.
graph::writer graphWriter
void write(const graph &, Ostream &os) const
Write.
A class for handling words, derived from Foam::string.
void writeXY(const scalarField &x, const scalarField &y, Ostream &) const
defineTypeName(gnuplotWriter)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const uniformDimensionedVectorField & g
OBJstream os(runTime.globalPath()/outputName)
forAllConstIters(mixture.phases(), phase)
addToRunTimeSelectionTable(graphWriter, gnuplotWriter, word)