T O P I C R E V I E W |
mkoetse |
Posted - 01/19/2004 : 08:30:36 AM Hello all,
I have the next bit of code:
--- Worksheet wks(strWks); int rown = GetRownVon(strWks); Dataset dsV(wks,0); Curve cvEcd(wks,5); // is Ecd Curve cvElm(wks,6); // is Elm int datsize = dsV.GetSize(); cvEcd.SetLowerBound(rown); cvElm.SetLowerBound(rown); cvEcd.SetUpperBound(datsize-2*rown); cvElm.SetUpperBound(datsize-2*rown); double maxCd = xatymax(cvEcd); double maxLm = xatymax(cvElm); --- This works fine, but is there a simple way to get a range of the curve, without using Set Lower and Upperbound? I'd like to plot the whole curve and do the math on only a part of the data.
Regards,
Marc
|
2 L A T E S T R E P L I E S (Newest First) |
mkoetse |
Posted - 01/19/2004 : 11:49:30 AM Thanx,
Exactly what I was looking for! But, could it be that this way of use of the Curve object is only constructed in version 7.5? (because I get constructor errors after trying to build.) If so is there a version 7(SR4) work around?
Marc
Edited by - mkoetse on 01/19/2004 2:40:47 PM |
cpyang |
Posted - 01/19/2004 : 10:02:40 AM To use a range of a plotted curve, the best thing to do is a use a copy constructor, see http://www.originlab.com/forum/topic.asp?TOPIC_ID=2784 where I have posted sample codes.
CP
|
|
|