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
 questions on plotting with labtalk

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
thuang Posted - 11/28/2005 : 03:45:54 AM
Origin Version (Select Help-->About Origin): originpro 7.5
Operating System: windows xp

Hi, I would like to use labtalk to create several plots of different types in the same layer.

for example, i have a worksheet named "data1" with columns a, b, j, k, l, w, x, y, z, and i want a/b to be a line graph, j/k/l to be a scatterplot with labels, and w/x/y/z to be vector xyxy. also, a, j, w, and y are set as x columns and l is set as label.

i've tried something like this:

win -t P;
layer -i200 data1_b;
layer -i201 data_k;
layer -i218 data_z;
layer -a;
layer.unit=1;layer 80 80 10 10;
page.width=2500;page.height=2500;

all three graphs show up ok, but the labels in column l don't show up and all the arrows in the xyxy graph point to the starting point. any suggestions on these 2 problems?

Edited by - thuang on 11/28/2005 3:42:28 PM
3   L A T E S T    R E P L I E S    (Newest First)
thuang Posted - 12/12/2005 : 5:00:45 PM
well, what if i wanted to have 2 xyxy plots in there, along with a scatterplot and line graph? :p and also the second xyxy only has 1 vector, but i wanted it to have a different color so i put it in a different column, because it's the sum of the vectors in the first xyxy.

as a recap i have the following script:

worksheet -s 6 0 9 0; //select columns
worksheet -p 218; //create xyxy (graph1)
layer -i200 data1_b; //include line graph
layer -i201 data1_k data1_L; //include scatter

i tried all these different ways, like adding:

window -a data1; //activate worksheet
worksheet -s 10 0 13 0; //select second xyxy columns
worksheet -p 218; //create second xyxy (graph2)
window -a graph1; //activate graph1
layer -ic graph2 1; //copy graph2 plots into graph1
window -cd graph2; //delete graph2

but that only overwrites whatever's in graph1.

maybe it's not possible to use labtalk script to have 2 xyxy in the same layer? would there be a way then to make the last data point in the first xyxy have a different line color?

and maybe this should go in a different thread, but is there a way to draw circles on the graph, using labtalk? thanks :)

Edited by - thuang on 12/12/2005 5:03:49 PM
thuang Posted - 11/28/2005 : 5:02:16 PM
thanks!
Laurie Posted - 11/28/2005 : 4:12:02 PM
Hi,

The XYXY vector plot is "special", so you will need to plot this first, creating the graph window, as follows:

worksheet -s 6 0 9 0; //select columns 6-9 in the worksheet
worksheet -p 218 vectxyxy; //plot wks selection, creating graph

You can now add the line and scatter plots to this graph. When plotting scatter, you need to also include the label column, as follows:

layer -i201 data_k data4_l;

-Laurie

OriginLab Technical Support

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