Go to the documentation of this file.
60 return this->getBaseName(
points, valueSetNames) +
".gplt";
73 os <<
"set term postscript color" <<
nl
74 <<
"set output \"" <<
points.name() <<
".ps\"" <<
nl;
78 if (valueSetNames.size() == 2)
80 os <<
"set ylabel \"" << valueSetNames[0] <<
"\"" <<
nl
81 <<
"set y2label \"" << valueSetNames[1] <<
"\"" <<
nl
82 <<
"set ytics nomirror" <<
nl <<
"set y2tics" <<
nl;
94 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
96 if (valueSetNames.size() == 2)
98 os <<
" axes x1y" << (i+1) ;
105 this->writeTable(
points, *valueSets[i], os);
114 const bool writeTracks,
121 if (valueSets.size() != valueSetNames.size())
124 <<
"Number of variables:" << valueSetNames.size() <<
endl
125 <<
"Number of valueSets:" << valueSets.size()
128 if (trackPoints.size() > 0)
130 os <<
"set term postscript color" <<
nl
131 <<
"set output \"" << trackPoints[0].name() <<
".ps\"" <<
nl;
133 forAll(trackPoints, trackI)
144 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
150 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.
gnuplotSetWriter()
Construct null.
virtual ~gnuplotSetWriter()
Destructor.
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.
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,...