JMP 14.2 联机文档
发现 JMP
使用 JMP
基本分析
基本绘图
刻画器指南
实验设计指南
拟合线性模型
预测和专业建模
多元方法
质量和过程方法
可靠性和生存方法
消费者研究
Scripting Guide
JSL Syntax Reference
该帮助的版本不再更新,请参见
https://www.jmp.com/support/help/zh-cn/15.2
获取最新的版本.
Scripting Guide
•
Scripting Graphs
•
Add Lines, Arrows, Points, Shapes, and Text
• Specify Transparency
上一个
•
下一个
Specify Transparency
In a graphics environment (like a Frame Box), use the Transparency function to set the level of transparency. The argument, alpha, can be any number between zero and one. The value 0 means clear and drawing has no effect. The value 1 means completely opaque and is the usual drawing mode. Intermediate values build semi-transparent color layers on top of what has already been drawn below it. The following example script illustrates transparency with rectangles.
win =
New Window
(
"Transparency"
,
Graph Box
(
Frame Size
(
200
,
200
),
Pen Color
(
"gray"
);
Fill Color
(
"gray"
);
Transparency
(
0.25
);
Rect
(
0
,
40
,
60
,
0
,
1
);
Pen Color
(
"red"
);
Fill Color
(
"red"
);
Transparency
(
0.5
);
Rect
(
10
,
60
,
70
,
10
,
1
);
Pen Color
(
"green"
);
Fill Color
(
"green"
);
Transparency
(
0.75
);
Rect
(
50
,
90
,
90
,
50
,
1
);
Pen Color
(
"blue"
);
Fill Color
(
"blue"
);
Transparency
(
1
);
Rect
(
0
,
80
,
70
,
70
,
1
);
)
);
图 12.20
Transparency and Rectangles