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
 Plotting with arbitrary X column

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
tigerade Posted - 02/10/2006 : 3:32:58 PM
Origin Version (Select Help-->About Origin): 7 SR4
Operating System: XP

I'm trying to plot data with two different X data. In other words, I have one Y data and two X data. I used "Curve" to define X and Y pair and drew them. But always Y in a graph was linked to data column what was set to X not to what was defined in "Curve" statement.

Codes:
string strX = strPage + "_" + "Time";
string strY = strPage + "_" + "Cap";
GraphLayer grlay1 = grph.Layers(0);
Curve cvCap(strX, strY);
grlay1.AddPlot(cvCap, IDM_PLOT_LINE);

The column "Time" was set to Y and another column ("Bias") was set to X. The plot in a graph has line with "Bias" as X data and "Cap" as Y data.

Thanks.


Edited by - tigerade on 02/10/2006 3:33:42 PM
2   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 02/10/2006 : 4:26:36 PM
In Origin 7.5 you can plot a Y column versus another Y column but you still can't plot the same Y column versus two different columns (X or Y) in the same graph layer. You must either use two layers or duplicate the column you want to plot twice. In Origin 7.0 you must also make "Time" an X column.

Mike Buess
Origin WebRing Member
easwar Posted - 02/10/2006 : 3:56:20 PM
Hi,

This was not supported in 7.0, but is supported in the current version of 7.5 - you can try in the 7.5 demo first.

Easwar
OriginLab


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