Go to the documentation of this file.
57 return this->getBaseName(
points, valueSetNames) +
".gplt";
70 os <<
"set term postscript color" <<
nl
71 <<
"set output \"" <<
points.name() <<
".ps\"" <<
nl
81 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
88 this->writeTable(
points, *valueSets[i], os);
97 const bool writeTracks,
104 if (valueSets.size() != valueSetNames.
size())
107 <<
"Number of variables:" << valueSetNames.
size() <<
endl
108 <<
"Number of valueSets:" << valueSets.size()
111 if (trackPoints.
size() > 0)
113 os <<
"set term postscript color" <<
nl
114 <<
"set output \"" << trackPoints[0].name() <<
".ps\"" <<
nl;
116 forAll(trackPoints, trackI)
127 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
133 this->writeTable(trackPoints[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.
#define forAll(list, i)
Loop across all elements in list.
gnuplotSetWriter()
Construct null.
virtual ~gnuplotSetWriter()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label size() const
Return the number of elements in the PtrList.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...