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
 2 Workbooks in 1 Diagram
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

BrOsCoRe

Germany
9 Posts

Posted - 07/01/2015 :  01:22:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I´ve got another question. Is it possible to put 2 XYZ Worksbooks in one Diagram.
Like i got for example the xyz1 data from the backside of the quader. Also I got the xyz2 data from the frontside.
Now i want that both data go into one 3D cmap so that i can see how thick the quader is.

I dont have any idea how to do this with an LabTalk Script. If somebody know it would be awesome if he or she could help me.

Greetings,
Bro

SeanMao

China
288 Posts

Posted - 07/02/2015 :  05:33:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please try the following code which will add another color surface to existing one:


range aa = [Book1]1!3; // Dataset 1 Z column in Book1
range bb = [Book2]1!3; // Dataset 2 Z column in Book2
plotxyz iz:=aa plot:=103; // Plot Dataset 1 as Colormap Surface
plotxyz iz:=bb plot:=103 ogl:=[%H]1!; // Add Dataset 2 to active layer


Regards!

Sean

OriginLab Tech. Service
Go to Top of Page

BrOsCoRe

Germany
9 Posts

Posted - 07/03/2015 :  01:46:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi SeanMao,

This didnt worked for me.
I searche for something like that:
http://www.originlab.com/doc/Tutorials/3D-Surface-Intersect-VM

I am gonna add my code again so it is easier for you to understand and hopefully help me.

[Main]
win -cd %H;
newbook template:=test123 sheet:=1;

string path$;

path$ = "Y:\DATA";
findfiles ext:="s*.dat";
impAsc
options.Sparklines:=0
options.template:=test123;

doc -e w{
xyz_renka 3 20 20;
worksheet -p 242 temp;
layer.unit = 4;
}

doc -e p{
expGraph filename:=%H
type:=jpg path:="Y:\DATA\IMG"
tr1.Margin:=2
tr1.Unit:=2
tr1.Width:=1920
tr1.height:1080
tr2.TIF.DotPerInch:=800
tr2.TIF.Compression:=LZW;
}


Thanks for the Help
Best Regards
Bro
Go to Top of Page

SeanMao

China
288 Posts

Posted - 07/03/2015 :  03:30:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The following code will do the job for Origin 8.5:


win -cd %H;
newbook template:=test123 sheet:=1;

string path$;

path$ = "Y:\DATA";
findfiles ext:="s*.dat";
impAsc options.Sparklines:=0 options.template:=test123;

@glob=1; // Make local variables global
string iniwks$ = %H; // Remember first workbook
xyz_renka 3 20 20;
worksheet -p 242 temp; // Make one surface plot
%T = %H; // Remember the graph window

doc -e w
{
	if(!(iniwks$==%H)) // Only process workbook not the initial one
	{
		xyz_renka 3 20 20;
		range rr = [%H]1!1; 
		win -a %T;   // Activate plot created earlier
		layer -i rr; // Add dataset to active layer
	}
//worksheet -p 242 temp;
}

@glob=0;

layer.unit = 4;
rescale;



Regards!

Sean
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