61 void SetTitle (
const std::string& title);
73 void SetExtra (
const std::string& extra);
175 void Add (
double x,
double y);
184 void Add (
double x,
double y,
double errorDelta);
194 void Add (
double x,
double y,
double xErrorDelta,
double yErrorDelta);
237 Gnuplot2dFunction (
const std::string& title =
"Untitled",
const std::string&
function =
"");
274 void SetStyle (
const std::string& style);
283 void Add (
double x,
double y,
double z);
323 Gnuplot3dFunction (
const std::string& title =
"Untitled",
const std::string&
function =
"");
352 Gnuplot (
const std::string& outputFilename=
"",
const std::string& title =
"");
377 void SetTitle (
const std::string& title);
383 void SetLegend (
const std::string& xLegend,
const std::string& yLegend);
388 void SetExtra (
const std::string& extra);
423 std::ostream &osData,
424 std::string dataFileName);
499 std::ostream &osData,
500 std::string dataFileName);
void AppendExtra(const std::string &extra)
Class to represent a 3D points plot. Set the line or points style using SetStyle() and set points usi...
Class to represent a 2D points plot. Set the line or points style using SetStyle() and set points usi...
void SetTitle(const std::string &title)
Change line title.
Abstract class to store a plot line to be used by ns3::Gnuplot.
Gnuplot(const std::string &outputFilename="", const std::string &title="")
Gnuplot2dDataset(const std::string &title="Untitled")
static void SetDefaultExtra(const std::string &extra)
Change extra formatting style parameters for newly created objects.
void Add(double x, double y, double z)
GnuplotDataset & operator=(const GnuplotDataset &original)
static std::string m_defaultExtra
Extra gnuplot parameters set on every newly created dataset.
void SetFunction(const std::string &function)
void AddDataset(const GnuplotDataset &dataset)
Class to represent a 3D function expression plot.
std::vector< struct Point > PointSet
void SetExtra(const std::string &extra)
Add extra formatting parameters to this dataset.
void SetErrorBars(enum ErrorBars errorBars)
std::vector< GnuplotDataset > Datasets
std::string m_outputFilename
void SetOutputFilename(const std::string &outputFilename)
a simple class to generate gnuplot-ready plotting commands from a set of datasets.
a simple class to group together multiple gnuplots into one file, e.g. for PDF multi-page output term...
void SetTitle(const std::string &title)
static std::string m_defaultStyle
Gnuplot3dDataset(const std::string &title="Untitled")
void GenerateOutput(std::ostream &os)
Writes gnuplot commands and data values to a single output stream.
void Add(double x, double y)
Gnuplot2dFunction(const std::string &title="Untitled", const std::string &function="")
Gnuplot3dFunction(const std::string &title="Untitled", const std::string &function="")
void AddPlot(const Gnuplot &plot)
void SetLegend(const std::string &xLegend, const std::string &yLegend)
static void SetDefaultErrorBars(enum ErrorBars errorBars)
GnuplotCollection(const std::string &outputFilename)
void GenerateOutput(std::ostream &os)
static void SetDefaultStyle(enum Style style)
std::vector< struct Point > PointSet
void SetStyle(enum Style style)
void SetExtra(const std::string &extra)
void SetStyle(const std::string &style)
std::string m_outputFilename
void SetTerminal(const std::string &terminal)
std::vector< Gnuplot > Plots
unsigned int m_dataFileDatasetIndex
void SetFunction(const std::string &function)
GnuplotDataset(const GnuplotDataset &original)
bool m_generateOneOutputFile
Class to represent a 2D function expression plot.
static void SetDefaultStyle(const std::string &style)
static std::string DetectTerminal(const std::string &filename)
static enum Style m_defaultStyle
void SetDataFileDatasetIndex(unsigned int index)
Sets the current data stream index in the data file.
void SetTerminal(const std::string &terminal)
Gnuplot & GetPlot(unsigned int id)
static enum ErrorBars m_defaultErrorBars