@tova 中写道:
嗨,
我正在使用图形构建器构建图形。 我有4个变量,我在y轴上显示,两个在左轴上,两个在右轴上。 我正在使用点,并希望根据另一个变量(恰好是颜色)对点进行颜色编码。 颜色编码仅适用于使用左轴的变量。 有没有办法可以为右轴变量着色?
谢谢!
我最终通过使用叠加,定义标记和颜色,然后从密钥隐藏我想要的任何东西来解决我的问题。
Add Properties to Table(
{New Script(
"PmW Norm To Single Sub Frame AVG[Um] & 3 more vs. Nozzle ID 3",
Graph Builder(
Size( 1564, 941 ),
Show Control Panel( 0 ),
Variables(
X( :Nozzle ID ),
Y(
:Name( "PmW Norm To Single Sub Frame AVG[Um]" ),
Side( "Right" )
),
Y(
:Name( "Line Width [Um]" ),
Position( 1 ),
Side( "Right" )
),
Y( :TIJ resistance, Position( 1 ) ),
Y( :Pump resistance, Position( 1 ) ),
Group X( :Pen, N View Levels( 1 ) ),
Group X( :Die, N View Levels( 1 ), First View Level( 2 ) ),
Group Y( :Bar, N View Levels( 1 ) ),
Overlay( :Color ),
Color( :Color )
),
Elements(
Points( X, Y( 3 ), Y( 4 ), Legend( 20 ) ),
Points( X, Y( 1 ), Y( 2 ), Legend( 21 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
20,
Properties( 0, {Line Color( 10 ), Marker( "Dot" )} ),
Properties( 1, {Line Color( 0 ), Marker( "Dot" )} ),
Properties( 2, {Line Color( 14 ), Marker( "Dot" )} ),
Properties( 3, {Line Color( 9 ), Marker( "Dot" )} ),
Properties( 4, {Line Color( 10 ), Marker( "Plus" )} ),
Properties( 5, {Line Color( 10 ), Marker( "Dot" )} ),
Properties( 7, {Marker( "Dot" )} ),
Properties( 8, {Line Color( 14 ), Marker( "Plus" )} ),
Properties( 9, {Line Color( 14 ), Marker( "Dot" )} ),
Properties( 10, {Line Color( 9 ), Marker( "Plus" )} ),
Properties( 11, {Line Color( 9 ), Marker( "Dot" )} )
), Legend Model(
21,
Properties( 4, {Line Color( 10 ), Marker( "X" )} ),
Properties( 5, {Line Color( 10 ), Marker( "Y" )} ),
Properties( 6, {Line Color( 0 ), Marker( "X" )} ),
Properties( 7, {Line Color( 0 ), Marker( "Y" )} ),
Properties( 8, {Line Color( 14 ), Marker( "X" )} ),
Properties( 9, {Line Color( 14 ), Marker( "Y" )} ),
Properties( 10, {Line Color( 9 )} ),
Properties( 11, {Line Color( 9 ), Marker( "Y" )} )
)}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position(
{20, [0, 1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1], 21, [
-3, -3, -3, -3, 6, 7, -1, -1, -1, -1, -1, -1]}
), Position(
{0, 1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1, -3, -3, -3,
-3, 6, 7, -1, -1, -1, -1, -1, -1}
)}
)
)
)
)}
)我最终通过使用叠加,定义标记和颜色,然后从密钥隐藏我想要的任何东西来解决我的问题。
向表添加属性({新脚本(“PmW Norm到单子帧AVG [Um]&3更多vs. 喷嘴ID 3“,图形生成器(尺寸(1564,941),显示控制面板(0),变量(X(:喷嘴ID),Y(:名称(”PmW标准到单个子框架AVG [Um]“),侧(“右”)),Y(:名称(“线宽[Um]”),位置(1),侧(“右”)),Y(:TIJ电阻,位置(1)),Y(:泵阻,位置(1)),组X(:笔,N视图水平(1)),组X(:模具,N视图水平(1),第一视图水平(2)),组Y(:Bar,N个视图级别(1)),叠加(:颜色),颜色(:颜色)),元素(点(X,Y(3),Y(4),图例(20)),点(X,Y(1) ),Y(2),Legend(21))),SendToReport(Dispatch({},“400”,ScaleBox,{Legend Model(20,Properties)(0,{Line Color(10),Marker(“Dot”)) }),属性(1,{线颜色(0),标记(“点”)}),属性(2,{线颜色(14),标记(“点”)}),属性(3,{线颜色(9),标记(“点”)}),属性(4,{线颜色(10),标记(“加”)}),属性(5,{线颜色(10),标记(“点”)) }),属性(7,{标记(“点”)) }),属性(8,{线颜色(14),标记(“加”)}),属性(9,{线颜色(14),标记(“点”)}),属性(10,{线颜色(9),Marker(“Plus”)}),属性(11,{Line Color(9),Marker(“Dot”)})),Legend模型(21,属性(4,{Line Color(10),标记(“X”)}),属性(5,{线颜色(10),标记(“Y”)}),属性(6,{线颜色(0),标记(“X”)}),属性(7,{线颜色(0),标记(“Y”)}),属性(8,{线颜色(14),标记(“X”)}),属性(9,{线颜色(14),标记(“Y”)}),属性(10,{线颜色(9)}),属性(11,{线颜色(9),标记(“Y”)}))}),调度({},“400”,LegendBox,{传奇位置({20,[0,1,2,3,4,5,-1,-1,-1,-1,-1,-1],21,[ - 3 ,-3,-3,-3,6,7,-1,-1,-1,-1,-1,-1]}),位置({0,1,2,3,4,5,-1,-1,-1,-1,-1,-1,-3,-3,-3,-3,6,7,-1,-1,-1,-1,-1,- 1})}))))})