[Kst] branches/work/kst/portto4/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Sep 22 17:32:19 UTC 2011
SVN commit 1255012 by netterfield:
BUG:
-e to create error bars from the command line was broken. Now it works.
M +4 -3 commandlineparser.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/commandlineparser.cpp #1255011:1255012
@@ -268,18 +268,19 @@
curve->setYVector(yv);
curve->setXError(0);
curve->setXMinusError(0);
- curve->setYMinusError(0);
curve->setColor(ColorSequence::self().next());
curve->setHasPoints(_usePoints);
curve->setHasLines(_useLines);
curve->setHasBars(_useBargraph);
- curve->setLineWidth(1); //FIXME: use defaults
+ curve->setLineWidth(_dialogDefaults->value("curves/lineWidth",0).toInt());
//curve->setPointType(ptype++ % KSTPOINT_MAXTYPE);
if (ev) {
curve->setYError(ev);
+ curve->setYMinusError(ev);
} else {
curve->setYError(0);
+ curve->setYMinusError(0);
}
curve->writeLock();
@@ -453,7 +454,7 @@
DataVectorPtr ev;
if (!_errorField.isEmpty()) {
- DataVectorPtr ev = createOrFindDataVector(_errorField, ds);
+ ev = createOrFindDataVector(_errorField, ds);
if (!_overrideStyle) {
_useBargraph=false;
_useLines = false;
More information about the Kst
mailing list