Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45886 is a reply to message #45720] |
Wed, 20 January 2016 10:12   |
|
Dear Kolbo and Honza,
Thanks a lot for the reply and kind help.
@Honza I am grateful to you for illustrating so lucidly in spite of your busy schedule.
Adding initialization in constructor solved DropList problem.
However, for plotting say scatter plot, one needs Vector<Pointf> V type of data. Here I am reading Vector<double> x, y;
I tried :
Vector<double> x, y;
VectorMap<double, double> P1;
while (!inF.IsEof()) {
SplitTo(ln, ',', val1, val2); // for tab delimited values, change delimiter as needed
x.Add(StrDbl(TrimBoth(val1)));
y << StrDbl(TrimBoth(val2)); // this is same as y.Add, just bit easier to read in some cases
P1<<(x,y); //<--------------------------------- CHECK
ln = inF.GetLine();
doPlot.array.Add(val1);
doPlot.array.Add(val2);
}
Here, I wanted to put val1 and val2 to P1 as (val1, val2) so that I may take P1 to scatter. However, it is not successfull. Also
I am unable to show data in arrayCtrl array.
Best Regards
Abhijit
[Updated on: Wed, 20 January 2016 10:15] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 04 22:40:23 CEST 2025
Total time taken to generate the page: 0.01478 seconds
|