A more flexible approach is to draw a line in the diagram and then move/resize the line to check the lenght and coordinates of start/end points. To do this:
1. Write a small segment of codes in Code Builder and compile it (see the code attached in below).
2. Draw a line in graph, and make sure its name is "Line", and right click on it to bring up "Object Control" Dialogbox.
3. In the dialog, select "Moved or Resized" for "Script, Run After", and in the script field, enter
line_length(line.x, line.y, line.dx, line.dy);
The Origin C code is here:
#include <Origin.h>
void line_length(double x, double y, double dx, double dy)
{
double x0 = x - dx/2;
double x1 = x + dx/2;
double y0 = y + dy/2;
double y1 = y - dy/2;
double length = sqrt(dx*dx + dy*dy);
static int n = 0;
n++;
printf("(%d)-----------------------------------------\n", n);
printf("x0 \t %f\n", x0);
printf("y0 \t %f\n", y0);
printf("x1 \t %f\n", x1);
printf("y1 \t %f\n", y1);
printf("length \t %f\n", length);
}
---
Leo