Summary: | More descriptive automatic plot names | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | D. V. Wiebe <dvw> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
D. V. Wiebe
2004-12-03 20:20:01 UTC
CVS commit by arwalker: When run from the command line, if curves are created one per plot, then label the plots P<n>-<y> where <n> is some integer (as before) and <y> is the name of the y-vector in some simple curve. All other cases remain as before. CCMAIL: 94346-done@bugs.kde.org M +4 -4 main.cpp 1.103 --- kdeextragear-2/kst/kst/main.cpp #1.102:1.103 @@ -555,4 +555,5 @@ int main(int argc, char *argv[]) { if (in.sep_plots) { + plot->setTagName(plot->tagName() + QString("-") + yvector->tagName()); i_plot++; if (i_plot < in.n_plots) { @@ -656,6 +657,5 @@ int main(int argc, char *argv[]) { hs = new KstHistogram(KST::suggestHistogramName(yvector->field()), - KstVectorPtr(yvector), min, max, N, - KST_HS_NUMBER); + KstVectorPtr(yvector), min, max, N, KST_HS_NUMBER); KstVCurvePtr vc = new KstVCurve(KST::suggestCurveName(hs->tagName(), true), hs->vX(), hs->vY(), @@ -743,5 +743,5 @@ int main(int argc, char *argv[]) { kst->showQuickStartDialog(); } - for (int i=0; i<strErrors.size(); i++) { + for (size_t i=0; i<strErrors.size(); i++) { KstDebug::self()->log(strErrors[i], KstDebug::Warning); } |