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 |