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
 Scatter Plot Colors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

CrazyBignate

USA
4 Posts

Posted - 06/21/2010 :  2:48:28 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver: 8.1
Operating System: Windows XP

Hello,

I have been working on plotting xy scatter plots from different work books into one graph. I currently have code working to do so, but each data set is set to the default color of black. I am having trouble utilizing the "set" function to get the autocolor sequence for each dataset.

Here is my working code thus far (with each dataset colored black),

// Point to the graph layer
range rGly = [Graph1]1!;


// Loop over all sheets in all books
doc -e LB {

// Check to see if workbook
if(2 == exist(%h,2))
{
// Declaring ranges
range rx=col(Q);
range ry=col(R);


// Use plotxy X-function to add plot to specified layer
plotxy iy:=(rx,ry) plot:=201 ogl:=rGly;


//Naming the graph
page.label$="Frequency Shift vs. Auxilary Voltage Shift";

}
};

//Legend update XF so legend shows data range;
win -a Graph1;
legendupdate mode:=dr;

////////////////////////////////////

Any help would be greatly appreciated, thanks!


CrazyBignate

USA
4 Posts

Posted - 06/21/2010 :  5:20:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Nevermind, figured it out.
Go to Top of Page

hholst

1 Posts

Posted - 11/17/2010 :  09:09:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

i have the same problem here . Can you please post your solution? Thanks!
Go to Top of Page

greg

USA
1379 Posts

Posted - 11/24/2010 :  11:17:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I do not know what solution CrazyBignate used, but when you have multiple plots in a layer, you can group them with script which will automatically apply group color options:

layer -g;

Once you have done that, you can also apply a theme to the group:

themeApply2g "Color Publication";
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