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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Buggy DataRange?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
additive Posted - 04/26/2009 : 4:58:37 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
additive Posted - 04/27/2009 : 02:57:42 AM
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.

cpyang Posted - 04/26/2009 : 9:50:10 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000