凡例内のアイテム数が可変で、フレーム数が可変であるデータセットを使用して、グラフビルダー出力を作成するスクリプトがあります。 フレームツリー構造を取得してフォーマットできますが、凡例をフォーマットできません。 私は近いと思いますが、最後の行で何かが機能していません。
これがスクリプトの例です。
Names Default To Here( 1 );
dt = Open("$SAMPLE_DATA/Solubility.jmp");
dtstack = dt << Stack(
columns(:Name( "1-Octanol" ),:Ether,:Chloroform,:Benzene,:Carbon Tetrachloride, :Hexane ),
Source Label Column( "Gas" ),
Stacked Data Column( "Solubility" )
);
gbname = dtstack << Graph Builder( Size( 668, 643 ), Show Control Panel( 0 ),
Variables( Y( :Solubility ), Wrap( :Gas ), Overlay( :Labels ) ),
Elements( Points( Y, Legend( 12 ) ) )
);
frames = gbname << xpath("//FrameBox"); //gets frames, works
frames << set background color( -16512221 ); //formats frames, works
LegendPallet = gbname << xpath("//LegendBox"); //gets legend, i think this works
LegendPallet << Color Theme( "Pastel" ); //formats color theme --doesn't work. I suspect an issue with my obj.やってみる
<< Categorical Color Theme( "Pastel" );
例については、スクリプトインデックスを参照してください。
ヘルプ==>パステルでのスクリプトインデックス検索