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
 2 Workbooks in 1 Diagram

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
BrOsCoRe Posted - 07/01/2015 : 01:22:26 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 07/03/2015 : 03:30:24 AM
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
BrOsCoRe Posted - 07/03/2015 : 01:46:01 AM
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
SeanMao Posted - 07/02/2015 : 05:33:35 AM
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

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