범례의 가변 수의 항목과 가변 수의 프레임이있는 데이터 세트로 그래프 빌더 출력을 작성하는 스크립트가 있습니다. 프레임 트리 구조를 가져 와서 형식을 지정할 수는 있지만 범례를 형식화 할 수는 없습니다. 나는 가까이 있다고 생각하지만 마지막 줄에서 뭔가 기능하지 않습니다.
다음은 예제 스크립트입니다.
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" );
예제는 스크립팅 색인을 참조하십시오
파스텔에서 도움말 ==> 스크립트 색인 검색