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
 Problem with legendupdate
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

thomsen01

Austria
22 Posts

Posted - 06/13/2012 :  10:26:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1378 Posts

Posted - 06/13/2012 :  11:45:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

thomsen01

Austria
22 Posts

Posted - 06/14/2012 :  02:46:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for your answer.
Then I will handle it with 9 parameters
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