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
 Bug or feature? Costs me some nerves ;-)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Timmi_N

Germany
Posts

Posted - 12/20/2004 :  05:16:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: Win/i386

Dear Users,

I really suffer from a situation, which I see as a bug, but might be some misused feature...

I use Mike's script (thanks a lot again!) for drawing and positioning label Boxes on top of vertical lines (see my former postings):

// position the text label (%T.x and %T.y are the coordinates at it's center);
%T.x = xx + %T.dx*0.4; // move to line
%T.y = y2-%T.dy/2; // move above line ;
%T.rotate = 90;

Now my problem: I've got many lines (scattering data), so the vertical lines are close. I was trying to position one group of labels a little less above, for instance via (I just tried and looked at it):

%T.y = y2-%T.dy/8.7;

That looked nice in the instance of Origin. Next time, I made a new project with the same (!!) graph template and the same graph, but now, I had to use

%T.y = y2-%T.dy/1.4;

for positioning the boxes a little less than the top (approx. same position).
Now I tried after a restart of Origin, edited the script in the Code Builder, saverd, made new project, loaded the script...


I had to use %T.y = y2-%T.dy/3;


and so on. I never again (!) received the same position. Either it was cut on the top or on the bottom or not even visible any more. That completely destroys the sense of my batch script to *save time*. Even worse, it now costs me additional nerves.

So, what's going on there?
Is it my fault? I really did exactly the same steps with the same template and the same .csv file I imported with this batch importer available from the file exchange forum.

Are these positioning things internal variables, which overflow or do whatever?

This is not the christmas present I expected after a few days of working out this script with so much help from web-ring member Mike....;- (I have to admit, that I've not understood the coordinates of the boxes, that means the "y2" and the - obviously - non-linear shifting if one divides these coordinate variables).


Unfortuneatly I cannot use my template in Origin 7.0, because it doesn'nt apply my fonts completely (y-axis is missing).



I would kindly appreciate some help!

Nevertheless, I wish everyone Merry Christmas and to us more a peaceful, better world next year!

Timmi_N

Germany
Posts

Posted - 12/20/2004 :  06:03:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
So, I found a work-around:


I choose the "%T.y" coordinate manually. That works, because in every graph I use the same "y-scale". So I'm happy again!


Merry Christmas again!
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