Go to the documentation of this file.
61 return this->getBaseName(
points, valueSetNames) +
".gplt";
74 os <<
"set term postscript color" <<
nl
75 <<
"set output \"" <<
points.name() <<
".ps\"" <<
nl;
79 if (valueSetNames.size() == 2)
81 os <<
"set ylabel \"" << valueSetNames[0] <<
"\"" <<
nl
82 <<
"set y2label \"" << valueSetNames[1] <<
"\"" <<
nl
83 <<
"set ytics nomirror" <<
nl <<
"set y2tics" <<
nl;
95 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
97 if (valueSetNames.size() == 2)
99 os <<
" axes x1y" << (i+1) ;
106 this->writeTable(
points, *valueSets[i],
os);
115 const bool writeTracks,
123 if (valueSets.size() != valueSetNames.size())
126 <<
"Number of variables:" << valueSetNames.size() <<
endl
127 <<
"Number of valueSets:" << valueSets.size()
130 if (tracks.size() > 0)
132 os <<
"set term postscript color" <<
nl
133 <<
"set output \"" << tracks[0].name() <<
".ps\"" <<
nl;
146 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
152 this->writeTable(tracks[trackI], valueSets[i][trackI],
os);
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
A class for handling file names.
gnuplotSetWriter()
Default construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Base class for graphics format writing. Entry points are.
Holds list of sampling positions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...