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
 ScatterPlot Thickness and Graph Color

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
YiDog21 Posted - 09/30/2005 : 4:33:55 PM
Origin Version (Select Help-->About Origin): 6.0
Operating System: xP

Hi, im trying to add into an existing script just the part to change the thickness of a scatterplot from 9 to 3, and changing the color of the data plotted through a line plot on layer.Y2 of an arbitrary graph. Is there a command or object referrence that could do these simple things?
3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 11/30/2006 : 9:08:34 PM
I can't find a LabTalk control for this parameter but you can do it in OriginC. Add the following function to Codebuilder's workspace as described here and call it from LabTalk like this: SetSymbolEdgeWidth value where value varies from 0 to 255 (default).

void SetSymbolEdgeWidth(int borderWidth = 255)
{
GraphLayer gl = Project.ActiveLayer();
if( !gl ) return;
DataPlot dp = gl.DataPlots(-1); // Active curve
dp.Curve.Symbol.EdgeWidth.nVal = borderWidth; // default width = 255
}

Mike Buess
Origin WebRing Member
abreiti Posted - 11/30/2006 : 05:40:39 AM
Is there a possibility to change the "borderwidth", too? I hope that's the right translation from the german word "Randbreite".

With "borderwidth" I mean the third parameter, You can change in the dataset-box. The other two are size and color. "borderwidth" is normally on standard.
Mike Buess Posted - 09/30/2005 : 5:01:28 PM
Use the set command...

set name -z 3; // set symbol size to 3 points
set name -c 2; // set line & symbol color: 1=black, 2=red, 3=green, etc.
set name -cl 2; // set line color
set name -cse 2; // set symbol edge color
set name -csf 2; // set symbol fill color

name is the name of the dataset you want to change. If the layer has only one curve you can use %C, which always holds the name of the active dataset. Otherwise you can use %(n, @D) to change the nth dataset listed at the bottom of the Data menu.

Not sure what your reference to layer.Y2 means.

Mike Buess
Origin WebRing Member

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