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
 Graph selection with the screen reader
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kid

USA
20 Posts

Posted - 06/20/2002 :  10:31:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I need to build a tool in a dialog, which allows zooming in the x-axis only. Im using
dotool 0;
page.active = 1;
getpts.max=x2-x1;
getpts -x;
but it will only take one point. I need it to return the range of x-y values, from the point user click in the graph preview, to the point he lets go of the mouse.

Laurie

USA
404 Posts

Posted - 06/25/2002 :  3:21:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The getpts command gets a specified number of points.

You can create a custom template. First create your graph and then hold down the Cntrl key while using the Enlarger tool on the Tools toolbar to drag out a rectangular box. A new window named Enlarged will be created, plotting the data inside the rectangular box. If you merge these two graph windows, you'll then have a graph with two layers.

Right-click on the rectangular object and select Label Control. Update the script so that the axis scales for layer 2 will update. In the Label Control dialog, you can also limit the movement to the horizontal direction and that way will only rescale the X axis. (You might want to resize the rectangular object so that it is as tall as the layer.)

You can then attach this custom graph in your dialog.

Thank you.

OriginLab Technical Support
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