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
 Transparency and edge size on symbols

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
us247 Posted - 02/06/2014 : 08:51:00 AM
Origin Ver. and Service Release (Select Help-->About Origin): 9.0 64bit
Operating System: Windows 7

Hi,
I have a couple of questions to ask:
1) do you know if it is possible to set transparency of a symbol in a graph with labtalk?
2) Also, how can I a set the edge size of an empty circle used as a symbol?

Thanks a lot.
3   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 02/10/2014 : 11:00:40 AM
You can use Origin C to set Symbol Transparency.
Here is a sample function:

// Set Symbol Transparency
void SetSymbolTransparency(uint uPlot, double dValue)
{
GraphLayer gl = Project.ActiveLayer();
if(gl.IsValid())
{
DataPlot dp = gl.DataPlots(uPlot);
if(dp.IsValid())
{
Tree tr;
tr = dp.GetFormat(FPB_ALL, FOB_ALL, true, true);
tr.Root.Symbol.Transparency.dVal = dValue;
if(0 == dp.UpdateThemeIDs(tr.Root) )
dp.ApplyFormat(tr, true, true);
}
}
}

e.g.
SetSymbolTransparency(0, 66)
will set the symbol transparency of the first plot ( Origin C indexes from 0 ) in the active layer of the active graph to 66%.
alexisravis Posted - 02/10/2014 : 05:58:13 AM
check the link below, may its helpful for you,
(http://www.originlab.com/doc/Tutorials/Symbol-Plot-with-Color-Transparency )

Kathy_Wang Posted - 02/08/2014 : 12:29:24 AM
Hi,

1. It is right now not possible to set symbol transparency with LabTalk. But we have a plan to implement this in future versions.

2. You could set the "Edge Thickness" by the -kh option switch of set command, for example:


//Set edge thickness of active data plot to 10
set %C -kh 10;


Kathy
Originlab

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