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
 Scatter Plot Colors

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
CrazyBignate Posted - 06/21/2010 : 2:48:28 PM
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!


3   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 11/24/2010 : 11:17:15 AM
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";
hholst Posted - 11/17/2010 : 09:09:46 AM
Hi,

i have the same problem here . Can you please post your solution? Thanks!
CrazyBignate Posted - 06/21/2010 : 5:20:20 PM
Nevermind, figured it out.

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