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
 Graph Line with Attached Text
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cdrozdowski111

USA
247 Posts

Posted - 11/22/2012 :  08:49:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 9.0.0 (Student version) Win& 64-bit running on VMware Fusion 5.0.2

Hello,

I have added a line to a graph at a specific place on the X-axis. Using the Programming Control dialog, I have set the attachment to "Layer and Scales". Using the Object Properties dialog, I have set the alignment to "Vertical" and "Whole Layer". I also set Coordinates to "Units: Scale" and the "Begin" and "End" X-axis to 723/723 respectively.

My goal is for the line to stay at that X-axis point and stretch vertically when I scale in and out of the graph. I HAVE DONE THAT.

However, I also want to attach some sort of label to that line (see image) such that the label is attached at the top of the stretched line and stays there (remain visible) when I scale in and out of the graph.

I added a Text object (meant to label the line) to the graph and tried every combination of settings and cannot get the text to stay aligned with the line and remain visible.

Any suggestions?

cpyang

USA
1406 Posts

Posted - 11/22/2012 :  09:18:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You need to use LabTalk for that, see

http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Graphic_Objects#Connect_method

Basically, once you have the line setup and text setup, assuming that the line has a name Line1 and the text named Text1, then you do

Line1.Connect(Text1,0);

will do.

CP
Go to Top of Page

easwar

USA
1964 Posts

Posted - 11/22/2012 :  9:57:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

As you have ver 9.0, you can also try the menu item:
Graph->Add Straight Line
which will allow adding a vertical or horizontal line at a specified location and provides a label that goes with the line, which can be locked or left editable.

Easwar
OriginLab
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 11/23/2012 :  3:57:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for both suggestions, especially the one for 9.0.0- that one is just what I needed.
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