DPlot_Plot8 for XYXY graphs

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
Mao
Posts: 12
Joined: Tue Jan 16, 2007 2:25 pm

DPlot_Plot8 for XYXY graphs

Post by Mao »

Good afternoon:

Could you please tell me how is the way to use the parameters of DPlot_Plot8 when you have several curves with different Xs (XYXY) ?


Thanks.

Mao
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Both X and Y should be packed with no empty spaces. For example if you have 2 curves and the number of points in those curves is N1 and N2, then your X(1)-X(N1) is for the first curve, X(N1+1)-X(N1+N2) is for the second curve. Same thing for Y.

Please let me know if this doesn't answer your question. (And thanks for the reminder; I need to add an example with differing number of points.)
Visualize Your Data
support@dplot.com
Mao
Posts: 12
Joined: Tue Jan 16, 2007 2:25 pm

Post by Mao »

Just to clarify, usig your example, if I have two curves the first curve is in X(0) to X(N1-1) and the second from X(N1) to X(N1+N2-1). Is this right ?

Please correct me if I am wrong (following with your example): if I declare d = New DPLOT, my declarations should be:

d.DataFormat = XYXY
d.MaxCurves = ??? (What is the difference between this and d.NumCurves?)
d.MaxPoints=N1+N2
d.NP(0)=N1 (are the curves numbered from 0 or 1?)
d.NP(1)=N2

Thanks.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Just to clarify, usig your example, if I have two curves the first curve is in X(0) to X(N1-1) and the second from X(N1) to X(N1+N2-1). Is this right ?
Yes, that is correct.
d.MaxCurves = ??? (What is the difference between this and d.NumCurves?)
NumCurves is the actual number of curves you'll be sending to DPlot with the call to DPlot_Plot8. MaxCurves is the number of curves that will be allocated by DPlot, and must be > NumCurves. You might want to use a larger number if you'll subsequently be adding one or more new curves.
Visualize Your Data
support@dplot.com
Post Reply