JMP 14.2 联机文档
发现 JMP
使用 JMP
基本分析
基本绘图
刻画器指南
实验设计指南
拟合线性模型
预测和专业建模
多元方法
质量和过程方法
可靠性和生存方法
消费者研究
Scripting Guide
JSL Syntax Reference
该帮助的版本不再更新,请参见
https://www.jmp.com/support/help/zh-cn/15.2
获取最新的版本.
Scripting Guide
•
Three-Dimensional Scenes
•
Drawing Text
• Using Text with Rotate and Translate
上一个
•
下一个
Using Text with Rotate and Translate
The following example uses the text command in conjunction with the
Translate
and
Rotate
commands.
scene =
Scene Box
(
600
,
600
);
// make a scene box...holds an OpenGL scene
New Window(
"Example 2"
, scene );
// put the scene in a window
scene <<
Perspective
(
45
,
3
,
7
);
// the "lens" is 45 degrees, near is 3 units from the camera, far is 7
scene <<
Translate
(
0.0
,
0.0
, -
4.5
);
// move the world so 0,0,0 is visible in the camera
scene <<
Rotate
(
30
,
0
,
1
,
0
);
// rotate the first text about the Y (vertical on screen) axis
scene <<
Color
(
1
,
0
,
2
);
// magenta
scene <<
Text
(
"center"
,
"baseline"
,
.2
,
"Top magenta string"
);
scene <<
Translate
(
0.0
,
0.0
, -
2.0
);
// the next string is even farther away from the camera
scene <<
Rotate
(
30
,
0
,
1
,
0
);
// rotate the second text about the Y (vertical on screen) axis
scene <<
Color
(
0
,
1
,
1
);
// aqua blue
scene <<
Text
(
"center"
,
"baseline"
,
.2
,
"Back aqua blue very long string"
);
scene <<
Update
;
// update the displaybox in the window using the current display list
图 13.14
Rotating and Translating Text Strings
Note the green string is extending backwards beyond the far clipping plane. Change the 7 to 10 in the
Perspective
command to see the complete string.