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
 LabTalk Forum
 i want to make a two graph using template
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hanwind

S. Korea
1 Posts

Posted - 01/28/2003 :  12:02:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 ^^;

greg

USA
1379 Posts

Posted - 02/03/2003 :  1:18:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

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