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
 How to create Double-Y graph?

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
liujibao Posted - 12/15/2003 : 08:25:00 AM
Can origin 7.5 do this?
who can tell me?
Thanks
2   L A T E S T    R E P L I E S    (Newest First)
liujibao Posted - 12/16/2003 : 07:26:05 AM
Thanks
I will try these.
easwar Posted - 12/15/2003 : 11:34:26 AM
Hi,

I presume you are asking for Origin C code to make a DoubleY plot. If yes, you can use code like the one pasted below.

If you just want to make Double Y graph using GUI, first create a worksheet with X,Y,Y column, place your data in those columns, click and select the two Y columns, and then use the menu item:
Plot|Special Line and Symbol|Double-Y

Easwar
OriginLab.




void test()
{
// Declare worksheet page using active page
WorksheetPage wksPg = Project.Pages();
// Declare worksheet as layer 0 of worksheet page
Worksheet wks = wksPg.Layers(0);
// If worksheet is not valid, print error and return
if(!wks)
{
printf("Active window is not a worksheet!\n");
return;
}

// Declare two curves using cols 1-2 and cols 1-3 for the two Ys
Curve crv1(wks, 0,1);
Curve crv2(wks, 0, 2);
// If either curve is not a valid object, print error and return
if(!crv1 || !crv2)
{
printf("Invalid curve object(s)!\n");
return;
}

// Create new graph page using DoubleY template
GraphPage gpg;
gpg.Create("DOUBLEY");
// Declare graph layers 1 and 2
GraphLayer gly1 = gpg.Layers(0);
GraphLayer gly2 = gpg.Layers(1);
// Add curve 1 to layer 1 and curve 2 to layer 2, and rescale both
gly1.AddPlot(crv1);
gly1.Rescale();
gly2.AddPlot(crv2);
gly2.Rescale();
}



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