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
 Transparency and edge size on symbols
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

us247

United Kingdom
1 Posts

Posted - 02/06/2014 :  08:51:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Kathy_Wang

China
159 Posts

Posted - 02/08/2014 :  12:29:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

alexisravis

USA
1 Posts

Posted - 02/10/2014 :  05:58:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
check the link below, may its helpful for you,
(http://www.originlab.com/doc/Tutorials/Symbol-Plot-with-Color-Transparency )


Edited by - alexisravis on 02/10/2014 05:59:05 AM
Go to Top of Page

greg

USA
1379 Posts

Posted - 02/10/2014 :  11:00:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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%.
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