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
 LabTalk Forum
 i want to make a two graph using template

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
hanwind Posted - 01/28/2003 : 12:02:57 AM
i want to make a two graph.

each script is work well. but when i connect all each script and run,

it doesn.t work.

------------------------------------------------------------------
run.section(file,ImportDBase32); //import *.dbf

work -c sum;
work -c Aberage;

col(Sum)=col(N0011P)+col(N0111P)+col(N0211P)+col(N0311P); //pressure sum;
col(aberage)=(col(N0002S)+col(N0102S)+col(N0202S)+col(N0302S))/4; //average stroke;

window -t plot c:\ex\test1 graph1;
window -t plot c:\ex\test2 graph2;
graph1!page.active=1;

graph1!layer.include(SINUS51_N0011P,202);
graph1!layer.include(SINUS51_N0111P,202);
graph1!layer.include(SINUS51_N0211P,202);
graph1!layer.include(SINUS51_N0311P,202);

rescale;

graph1!page.active=2;

graph1!layer.include(SINUS51_N0002S,202);
graph1!layer.include(SINUS51_N0102S,202);
graph1!layer.include(SINUS51_N0202S,202);
graph1!layer.include(SINUS51_N0302S,202);

rescale;

graph2!page.active=1;
graph2!layer.plotxy(SINUS51_Aberage,SINUS51_sum,193)
--------------------------------------------------------------------
it's my first work. so i think there are many problem.

please, teach me ^^;
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 02/03/2003 : 1:18:42 PM
The rescale macro only works on the active window so you will need to make each window active and rescale:

win -a graph1;
rescale;
win -a graph2;
rescale;

Also, you can not use the plotxy command to plot Bubble Charts (plot id = 193). Instead, you will need to use a physical worksheet selection and then use the worksheet -plot command:
wo -p 193 c:\ex\test2
This means you will need to:
1) Remember the worksheet name (%M = %H; when it's active)
2) Switch back to it (win -a %M; to make it active)
3) Use wo -s or wks.selcol( ) to select columns
4) Selected columns must be appropriate types (XYY or YY)
5) The wo -p command creates a window, so you won't need your window -t plot c:\ex\test2 graph2


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