|
TIC COORDINATESName:
where the prefix X refers to lower horizontal axis; the prefix X1 refers to the lower horizontal axis; the prefix X2 refers to the upper horizontal axis; the prefix Y refers to the left vertical axis; the prefix Y1 refers to the left vertical axis; the prefix Y2 refers to the right vertical axis; and where <y> is a response variable where the coordinates will be saved. SCREEN returns the coordinates in 0 to 100 screen units and DATA returns the coordinates in data units of the most recent plot. Note that this command has no input arguments.
LET YCOOR = YTIC DATA COORDINATES LET YCOOR = Y1TIC SCREEN COORDINATES LET XCOOR = XTIC SCREEN COORDINATES
plot x**2 for x = 1 1 9
.
let youts = ytic screen coordinates
let youtd = ytic data coordinates
let xouts = xtic screen coordinates
let xoutd = xtic data coordinates
.
set write decimals 3
print youts youtd xouts xoutd
The following output is returned
------------------------------------------------------------
YOUTS YOUTD XOUTS XOUTD
------------------------------------------------------------
20.000 0.000 15.000 1.000
27.778 10.000 23.750 2.000
35.556 20.000 32.500 3.000
43.333 30.000 41.250 4.000
51.111 40.000 50.000 5.000
58.889 50.000 58.750 6.000
66.667 60.000 67.500 7.000
74.444 70.000 76.250 8.000
82.222 80.000 85.000 9.000
90.000 90.000 0.000 0.000
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 10/10/2018 | ||||