many eval things
moved obsolete code TeX work
This commit is contained in:
@@ -31,7 +31,7 @@ class PlotErrFunc {
|
||||
K::GnuplotPlot gplot;
|
||||
|
||||
//std::vector<std::string> colors = {"#000000", "#ff0000", "#00bb00", "#0000ff"};
|
||||
std::vector<std::string> colors = {"#000000", "#999999", "#0000ff", "#9999ff", "#ff0000"};
|
||||
std::vector<std::string> colors = {"#000000", "#ff0000", "#00ff00", "#0000ff", "#00aaaa"};
|
||||
|
||||
bool markers = false;
|
||||
|
||||
@@ -42,10 +42,10 @@ public:
|
||||
|
||||
/** ctor with x-axis label */
|
||||
PlotErrFunc(const std::string& xLabel, const std::string& yLabel) {
|
||||
gplot.setLabelX(xLabel);
|
||||
gplot.setLabelY(yLabel);
|
||||
gplot.setRangeX(K::GnuplotAxisRange(0, K::GnuplotAxisRange::AUTO));
|
||||
gplot.setRangeY(K::GnuplotAxisRange(0, K::GnuplotAxisRange::AUTO));
|
||||
gplot.getAxisX().setLabel(xLabel);
|
||||
gplot.getAxisY().setLabel(yLabel);
|
||||
gplot.getAxisX().setRange(K::GnuplotAxis::Range(0, K::GnuplotAxis::Range::AUTO));
|
||||
gplot.getAxisY().setRange(K::GnuplotAxis::Range(0, K::GnuplotAxis::Range::AUTO));
|
||||
}
|
||||
|
||||
/** add one curve. Statistics<T> are allowed to be altered outside afterwards! */
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
Entry entry(name, stats);
|
||||
entry.line = new K::GnuplotPlotElementLines();
|
||||
entry.line->setTitle(name);
|
||||
entry.line->setLineWidth(2);
|
||||
entry.line->getStroke().setWidth(2);
|
||||
gplot.add(entry.line);
|
||||
entries.push_back(entry);
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
const Entry& e = entries[i];
|
||||
|
||||
e.line->clear();
|
||||
e.line->setColorHex(colors[i]);
|
||||
e.line->getStroke().getColor().setHexStr(colors[i]);
|
||||
|
||||
// distancen between min and max
|
||||
const float minX = e.stats->getQuantile(0);
|
||||
|
||||
Reference in New Issue
Block a user