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
 line going out of the graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

shyamigcar2

India
25 Posts

Posted - 06/13/2020 :  10:32:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The x values of a graph ranges from 0 to 100 and Y value ranges from 200 to 800. I am trying to create a line in a vertical line in a graph at (20,200) to (20, 726).
draw -n 1h726 -l {20,200,20,726}; a line is created and everything is fine.

Now I resize the y value of graph from 400 to 600. The line goes out of the graph. I wanted the line to remain betwen 400 to 600. Is it possible.

Edited by - shyamigcar2 on 06/15/2020 09:22:15 AM

YimingChen

1667 Posts

Posted - 06/15/2020 :  10:13:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can add a line of script after drawing the line.

1H726.ATTACH=1;

This will attach the line to the page, so that rescaling of y axis won't affect its display.

James

Edited by - YimingChen on 06/15/2020 10:14:29 AM
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