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

gloorigin

Italy
7 Posts

Posted - 02/18/2003 :  04:13:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would need some help about Origin. I am doing a script window to do lots of plots in an automatic way and I would like to know if it is possible to insert a text in the plot with part of the file name. So, if my file is called: SJ710415.ttt
I would need a text with this form 15 04 1971
It is possible???

A second question is this:
-I have data from O to 500 and I would like to plot only to 350 but the result is that my y-axes go to 350 and the line is going on to 500!!!....how can I do??

Thank a lot for your help.
G.

Mike Buess

USA
3037 Posts

Posted - 02/18/2003 :  12:49:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Question 1:
If your file names are always DOS 8.3 then this will work...

%A=SJ710415.ttt; // start with your filename
year=%[%A,3:4]; // find the last two digits of year
year+=1900;
if(year<1950) year+=100; // 1950 is not the conventional cutoff, but it should work
%S="%[%A,7:8] %[%A,5:6] $(year)";
label -s -n dateLabel %S; // create label
dateLabel.x=xPosition; // set x coordinate at center of label
dateLabel.y=yPosition; // set y coordinate at center of label

Question 2:
1. Double-click on the layer icon and select Layer Properties.
2. Select the Display tab.
3. Check the "Clip Data to Frame" option.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 02/18/2003 12:59:56 PM

Edited by - Mike Buess on 02/18/2003 1:05:12 PM
Go to Top of Page

gloorigin

Italy
7 Posts

Posted - 02/19/2003 :  04:48:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
THANKS A LOT, MIKE!!!
Everything is OK now. The only thing is to create a space between characters. It is possible do it??
THANK AGAIN.
G.
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