@tova 書きました:
こんにちは、
私はグラフビルダーでグラフを作成しています。 Y軸に4つの変数、左側に2つ、右側に2つの変数があります。 私は点を使用していて、その点を別の変数(たまたま色)に基づいて色分けしたいと思います。 色分けは、左軸を使用する変数に対してのみ機能します。 正しい軸変数に色を付ける方法はありますか?
ありがとうございます。
私は、オーバーレイを使ってマーカーと色を定義し、そしてキーから欲しいものを隠すことによって私の問題を解決しました。
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}
)}
)
)
)
)}
)