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
 Origin Forum
 Problems labelling from script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

grahamc

Lancaster, England
22 Posts

Posted - 12/02/1998 :  5:55:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

greg

USA
1379 Posts

Posted - 12/04/1998 :  7:17:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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).]

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