JMP コミュニティの皆様、こんにちは。
現在、事前に入力されたグラフビルダーの形で、他のものの中でプロットテンプレートを作成するスクリプトを書いています。 以下のスクリプト。 オープン グラフ ビルダーは、通常、プロット内の既存の 4 つの信号に加えて、他の信号を見たいユーザーが使用することになっています。 そのため、彼は通常、別の列をドラッグして、既存の 4 つの信号の上または下にドロップし始めます。
問題は、手動で y 軸にドロップされた新しい信号に標準色が割り当てられることです。 凡例のプロパティを介して正しい色を手動で割り当てることなく、y 軸にいくつの信号をドロップしてドラッグしても、プロット内のすべての信号が :State で定義された同じ色になるようにしたいと思います。
それを達成する方法は?
ありがとう
ロブ
Graph Builder(
Variables(
X( :Time ),
Y( :Signal 1 ),
Y( :Signal 2 ),
Y( :Signal 3 ),
Y( :Signal 4 ),
Color( :State )
),
Elements( Position( 1, 1 ), Line( X, Y, Legend( 4 ) ) ),
Elements( Position( 1, 2 ), Line( X, Y, Legend( 5 ) ) ),
Elements( Position( 1, 3 ), Line( X, Y, Legend( 6 ) ) ),
Elements( Position( 1, 4 ), Line( X, Y, Legend( 7 ) ) ),
SendToReport(
Dispatch( {}, "Signal 3", ScaleBox, {Format( "Best", 12 )} ),
Dispatch( {}, "Signal 4", ScaleBox, {Format( "Best", 12 )} ),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
4,
Properties( 0, {Line Color( 21 )}, Item ID( "Here", 1 ) ),
Properties( 1, {Line Color( 20 )}, Item ID( "are", 1 ) ),
Properties( 2, {Line Color( 41 )}, Item ID( "different", 1 ) ),
Properties( 3, {Line Color( 37 )}, Item ID( "labels", 1 ) ),
Properties( 4, {Line Color( 0 )}, Item ID( "for", 1 ) ),
Properties( 5, {Line Color( 32 )}, Item ID( "certain", 1 ) ),
Properties( 6, {Line Color( 1 )}, Item ID( "system", 1 ) ),
Properties( 7, {Line Color( 32 )}, Item ID( "states", 1 ) )
)}
)
)
)