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
 Forum for Origin C
 @WT does not work vor legends in OriginCScripts

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
entepankopf Posted - 04/30/2015 : 08:09:43 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 9.1.OG
Operating System: Windows 7

Hello,

I am programming an OriginCSkript and I've got an problem with the legend. My code including my function for updating the Ledend is

legend_update(vocstabilityDataGraphLayer, ALM_CUSTOM, true, true, "%(1, @WT, B, L)_0%(1, @WT, B, 1)");

The result is %(1, ###, B, L)_0%(1, ###, B, 1) instead of Pixel_01.
If i click dobble on the legend and tipe in %(1, @WT, B, L)_0%(1, @WT, B, 1) I will get my result Pixel_01, but in the skript it does not work.

Do you've got any idea?

Regards, Ente
3   L A T E S T    R E P L I E S    (Newest First)
jasonzhao Posted - 05/06/2015 : 10:49:49 PM
Hello,

To better understand your questions, would you please illustrate it with screen shot?

Best regards!
Jason
OriginLab Technical Service
entepankopf Posted - 05/06/2015 : 04:02:12 AM
Hello,

thank you for the answer. My kind of problem is that I plot like you "longB" over "longA" and I got a third column "longC" where always the same device number is registered - say "C1". Now in the Legend I want the label "LongC_0C1". Is this automatically possible?

Regards, Ente
jasonzhao Posted - 05/05/2015 : 04:48:13 AM
Hello,
Please check with the code and the results.

void legendTest()
{
	string strCustomMode= "@LA_0@V";
	printf("%s",strCustomMode);
	GraphLayer gl = Project.ActiveLayer();
	legend_update(gl, ALM_CUSTOM, true, true, strCustomMode);
	return;
}




you can also refer to this page for further information.
http://www.originlab.com/doc/LabTalk/ref/Legend-Substitution-Notation#Complete_List_of_.40Options

Best regards!
Jason
OriginLab Technical Service

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