@托娃寫道:
你好,
我正在使用圖形生成器建立圖形。我在 y 軸上顯示了 4 個變量,其中兩個在左軸上,兩個在右軸上。我正在使用點,並且希望根據另一個變數(恰好是顏色)對點進行顏色編碼。顏色編碼僅適用於使用左軸的變數。有沒有辦法可以為右軸變數著色?
謝謝!
我最終透過使用覆蓋、定義標記和顏色,然後從按鍵中隱藏我想要的任何內容來解決我的問題。
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 To Single Sub Frame AVG[Um] & 3 more vs. Nozzle ID 3", Graph Builder( Size( 1564, 941 ), Show Control Panel( 0 ), Variables( X ( :噴嘴 ID ), Y( :Name( "PmW 標準到單子訊框 AVG[Um]" ), Side( "右" ) ), Y( :Name( "線寬 [Um]" ), 位置( 1 ), 側面( "右" ) ), Y( :TIJ 阻力, 位置( 1 ) ), Y( : 幫浦阻力, 位置( 1 ) ), X 組( : 筆, N 視圖等級( 1 ) ), X 組( :Die,N 個視圖層級( 1 ),第一個視圖層級( 2 ) ),Y 群組( :Bar,N 個視圖層級( 1 ) ),疊加( :顏色),顏色( :顏色) ),元素( 點( X, Y( 3 ), Y( 4 ), 圖例( 20 ) ), 點( X, Y( 1 ), Y( 2 ), 圖例( 21 ) ) ), SendToReport( 調度( {}, "400", ScaleBox, {圖例模型( 20, 屬性( 0, {線條顏色( 10 ), 標記( "點" )} ), 屬性( 1, {線條顏色( 0 ), 標記( "點" )} ), 屬性( 2, {線條顏色( 14 ), 標記( "點" )} ), 屬性( 3, {線條顏色( 9 ), 標記( "點" )} ), 屬性( 4, {線條顏色( 10 ), 標記( "加號" )} ), 屬性( 5, {線條顏色( 10 ), 標記( "點" )} ), 屬性( 7, {標記( "點" )} ), 屬性( 8 , {線條顏色( 14 ), 標記( "加" )} ), 屬性( 9, {線條顏色( 14 ), 標記( "點" )} ), 屬性( 10, {線條顏色( 9 ), 標記( "加" )} ), 屬性( 11, {線條顏色( 9 ), 標記( "點" )} ) ), 圖例模型( 21, 屬性( 4, {線條顏色( 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} )} ) ) ) )} )