The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Buggy DataRange?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

additive

Germany
109 Posts

Posted - 04/26/2009 :  4:58:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1406 Posts

Posted - 04/26/2009 :  9:50:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The plotting code does not support this, so if this is needed, it would be a new feature that we can add in Origin 8.1

CP
Go to Top of Page

additive

Germany
109 Posts

Posted - 04/27/2009 :  02:57:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by cpyang

The plotting code does not support this, so if this is needed, it would be a new feature that we can add in Origin 8.1


Thank you for your quick response. This would be really great! Most of our application projects consist of collecting different data from different worksheets which cannot be plotted directly (because of formatting reasons or data manipulation like reduction or simple calculations). Since DataRange has such a good perfomance we use it quite often (in earlier OC days we added a temporary worksheet containing redundant data only for graph creation). Adaption of the plotting code would make this tool even more convenient.


Edited by - additive on 04/27/2009 02:59:24 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000