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
 LabTalk Forum
 string extract

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
gloorigin Posted - 02/18/2003 : 04:13:30 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
gloorigin Posted - 02/19/2003 : 04:48:56 AM
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.
Mike Buess Posted - 02/18/2003 : 12:49:16 PM
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

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