Origin 8 SR4
Hi there,
working more and more with this very useful DataRange class which simplifies a lot, I now could isolate a little problem:
I would like to plot Y data against X data coming from a different row range:
Worksheet wks("Book1");
DataRange dr;
dr.Add("X", wks, 0, 0, 9, 0);
dr.Add("Y", wks, 10, 1, 19, 1);
GraphPage gp;
gp.Create("Origin", CREATE_VISIBLE);
GraphLayer gl = gp.Layers();
gl.AddPlot(dr, IDM_PLOT_LINE);
gl.Rescale();
It seems that OriginC takes the row range of the Y data, ignoring the one specified when adding the X data.
Is this is limitation, bug, or my mistake? However, it would be a great feature getting this done. Thus, one could save a lot of storage needed for duplicated data collected in additional worksheets.
Thank you for having a look at this problem,
Michael