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
 Change label text in legend from labtalk?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tom3m

USA
27 Posts

Posted - 05/22/2002 :  4:50:38 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How do I change the label text in a legend directly from labtalk? For each column pair to be plotted, I wish to construct a legend string using a subset of text from the first entry in each column (a text entry) rather from the column name. For example, I extract current density Jval and x,y color coordinates xval, yval for the column pair and want to make a legend string that says something like

"Current Density = $(Jval) mA/cm\+(2), x = $(xval),y = $(yval)"

Is there an object method for doing this? I have tried making my own legend using the label command, eg

label -sa -j 0 \L(1) str1 \r\n \L(2) str2;

where str1 and str2 are the new strings as constructed above, but this doesn't quite line up as well as legend.

Any ideas? I'm running Oring 6.1 right now. Thanks!
  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