我有一个脚本,可使用图例中可变数量的项目和可变帧数的数据集来创建图形构建器输出。 我能够获取帧树结构,然后对其进行格式化,但无法格式化图例。 我想我已经接近了,但是最后一行没有任何功能。
这是一个示例脚本。
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" );
有关示例,请参见脚本编制索引
Help ==>柔和的脚本索引搜索