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
 Draw multiple line with scatter graph

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
elquin Posted - 08/29/2017 : 04:17:42 AM
Origin Ver. and Service Release (Select Help-->About Origin): 2015 (64bit) Sr2
Operating System: Windows 7

I want to plot several datasets (col(2),col(5),col(6),etc.) by one Graph with line with symbol having different line type and symbol shape.

For example,
plot 1 : continuous line with square
plot 2 : dotted line with circle
...

What I want is that the way of programming by LabTalk script to set group those dataset and make the symbol shape increase by one, as shown in menu.

If there's way, please let me know.

Thanks..
1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 08/30/2017 : 04:58:45 AM
Hi,

I am afraid that we haven’t a quick way to do that for now, but I think we can set the line style and symbol type for each plot respectively and then group the plots. I wrote a simple example:

//Plot col(2), col(4)
plotxy iy:=((1,2),(1,4)) plot:=202;
dataset ds = {1,2,3};
//Ungroup dataplots
layer -gu;
int n = 1;
//Loop over all data plots in the active layer
doc -e DY{
	set %C -k ds[n]; // Set plot symbol shape (Built-in symbols)
	set %C -d ds[n]; // Set the line style
	n++;
}
//Group dataplots
layer -g;


To know more information about plotting data by LabTalk, please have a look at this page:
http://www.originlab.com/doc/LabTalk/guide/Creating-Graphs#Creating_a_Graph_with_the_PLOTXY_X-Function

Hope it helps.

Regards,
Yuki
OriginLab

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