我有一個腳本,它使用一個數據集創建一個圖形生成器輸出,該數據集在圖例中具有可變數量的項目和可變數量的幀。我能夠獲得框架樹結構然後格式化它們但無法格式化圖例。我想我已經接近了,但在最後一行中有些東西不起作用。
這是一個示例腳本。
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" );
有關示例,請參閱腳本索引
幫助==>在粉彩上搜索腳本索引