1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2026-01-13 12:49:32 +00:00

Plot: horizontal lines and axis labels

This commit is contained in:
2015-02-13 15:26:00 +00:00
parent 80ec189b91
commit 60a010b592
2 changed files with 41 additions and 0 deletions

View File

@@ -111,6 +111,12 @@ PlotData::PlotData(const XYStatData &data, const Index i, const Index j)
setCommand("'" + tmpFileName + "' " + usingCmd);
}
// PlotHLine constructor ///////////////////////////////////////////////////////
PlotHLine::PlotHLine(const double y)
{
setCommand(strFrom(y));
}
// PlotFunction constructor ////////////////////////////////////////////////////
PlotFunction::PlotFunction(const DoubleFunction &function, const double xMin,
const double xMax, const unsigned int nPoint)
@@ -173,6 +179,18 @@ void Caption::operator()(PlotOptions &option) const
option.caption = caption_;
}
// Label constructor ///////////////////////////////////////////////////////////
Label::Label(const string &label, const Axis axis)
: label_(label)
, axis_(axis)
{}
// Label modifier //////////////////////////////////////////////////////////////
void Label::operator()(PlotOptions &option) const
{
option.label[static_cast<int>(axis_)] = label_;
}
// Color constructor ///////////////////////////////////////////////////////////
Color::Color(const string &color)
: color_(color)