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
 Graph symbol shape
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

alexapostu

Romania
10 Posts

Posted - 07/08/2020 :  12:50:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi, I have the below script to change the graph symbol and a few little things. I created a code that has in one graph 20 lines, and I want them to have different shapes and colours. How can I integrate the below script in a FOR loop and change my script?
// Set symbol size
// %C is the active dataset
sec -p 1;
set %C -z 20;
// Set symbol shape
sec -p 1;
set %C -k 3;
// Set symbol color
sec -p 1;
set %C -c color(blue);
// Connect the symbols
sec -p 1;
set %C -l 1;
// Change plot line color
sec -p 1;
set %C -cl color(red);
// Set line width to 4 points
sec -p 1;
set %C -w 2000;
// Change solid line to dash
sec -p 1;
set %C -d 1;

YimingChen

1666 Posts

Posted - 07/10/2020 :  09:24:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please activate a worksheet with xyyy data, and try the script:


int nn = wks.ncols;  
plotxy (1,2:$(nn));
layer -gu; // ungroup plots
layer -c; // count the number of plots and save to count
for (int i = 1; i <= count; i++)
{
	range rr = $(i);  
	set rr -c $(i);
	set rr -k $(i);
}


James

Edited by - YimingChen on 07/10/2020 09:24:51 AM
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