The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problem with legendupdate

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 HyperlinkInsert EmailInsert 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
thomsen01 Posted - 06/13/2012 : 10:26:09 AM
Origin 8.6.0G (32-bit) Sr3
Windows 7

Hi everyone,

I use the following function to define the userparameter in my worksheet:

wks.userparam1$ = Test1; 	
wks.userparam1 = 1;
wks.userparam2$ = Test2; 	
wks.userparam2 = 1;
....
wks.userparam10$ = Test10; 	
wks.userparam1 = 1;

Then I try to update my legend in the graph-layer with:
legendupdate mode:=custom custom:="@LD1"


This works fine for the first 9 parameters. But for the 10. parameter it change the legend to parameter 1.
legendupdate mode:=custom custom:="@LD10"


Can anyone tell me, why this happens.

Thanks for your help.
Thomsen
2   L A T E S T    R E P L I E S    (Newest First)
thomsen01 Posted - 06/14/2012 : 02:46:14 AM
Thanks for your answer.
Then I will handle it with 9 parameters
greg Posted - 06/13/2012 : 11:45:21 AM
It's a bug as this code clearly shows:

newbook;
col(1) = data(1,20);
col(2) = uniform(20);
loop(ii,1,13)
{
wks.userparam$(ii)$ = Test$(ii);
wks.userparam$(ii) = 1;
col(2)[Test$(ii)]$ = Test $(ii);
}
plotxy (1,2);
loop(ii,1,14)
{
legendupdate mode:=custom custom:="@LD$(ii)";
sec -p .75;
}

Anything over 9 cannot be used as legend text. We will add this to bug list.

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