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
 Origin Forum
 Problems labelling from script

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
grahamc Posted - 12/02/1998 : 5:55:00 PM
Hi

I have this following snippet of Labtalk:

window -t graph AutoDLTS.otp DLTS;
window -a DLTS;
layer -s 2;
label -j 1 -d 400 880 -yl Hello World!;


The template it loads is 3 layer, this snippet is supposed to define the text and position of the Y axis label. However, whenever this is run, the label is positioned to the top left of the graph, rather than halfway down the axis. This also happens if I make a dummy axis label in the position I want it, then re-write it using

label -j 1 -yl Hello World!;

If the relevant line of the script is executed manually, by simply selecting the line and pressing return after the script has run, then the label jumps into the right place. However from the script, repeated use of the same command doesn't have any effect- neither does refreshing the document between successive calls of the command.

I tried specifying a range of different co-ordinates, but the label appears in the same place on each attempt.

This is on Origin5sr2 on NT4sp4.

Does anyone have an idea what's going on, and if there's a way around it?

1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 12/04/1998 : 7:17:00 PM
We were not able to reproduce the problem using 5.0SR2 on NT4SP3. While different computers and/or different operating systems can sometimes show different script behaviors when scripts are creating windows, I don't think this is the case with your script.

A more likely cause is your use of two positioning options in your label command (the justify option and the screen pixel position) combined with characteristics of your custom Template and possibly systemic effects.

In any event, this type of problem is better suited to working with Technical Support. In your case, that would be through Aston Scientific. Email your graph template, your script and a description of the problem and they may be able to come up with a solution.


Aston Scientific - Origin Technical Support

origin.support@astonsci.co.uk

[This message has been edited by Greg (edited 12-04-98).]


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