저장된 PNG가 표시되지 않는 범례dt = Open( "\\someFile.jmp", invisible);
path = "\\path\to\folder\";
names = { "Amplitude 1/2 Vppse", "Amplitude Vppde"};
ngraphs = N Items( names );
For( ip = 1, ip <= ngraphs, ip++,
current_graph = dt << Variability Chart(
invisible,
Y( Column(dt, names[ip])),
X( :Temp, :vccl),
Std Dev Chart( 0 ),
SendToReport(
Dispatch(
{"Variability Chart for " || names[ip]},
"2",
ScaleBox,
{Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}
),
Dispatch(
{"Variability Chart for " || names[ip]},
"Variability Chart",
FrameBox,
{Row Legend(
Serial,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
);
current_graph rep = current_graph << Report;
chart_type = Char(current_graph << Title);
chart_type = Munger(chart_type, 1, "[]", "");
If(chart_type == "Variability Chart", name = current_graph rep[TextEditBox(1)] << Get Text );
name = Munger(name,1,"/", "_");
final_name = chart_type || "_" || name ;
picture_path = path || Char(final_name) || ".png";
current_graph << Save Picture( picture_path, "png" );
)
도움! 그래서 배열에 넣은 각 열에 대해 그래프를 만들기 위해 for 루프를 만들었습니다. 이것은 실제로 작동합니다 
그러나 스크립트에 범례가 있어도 범례가 표시되지 않는 것 같습니다.
또한 데이터가 있고 스크립트가 실행되지 않는 빈 jmp 파일에서 내 데이터 포인트는 스크립트에서 지정한 색상 표식 대신 검은 점입니다. 이 연결되어 있습니까? 데이터 세트에서 스크립트를 실행 한 다음 위의 스크립트와 같이 전체 .jsl 스크립트를 실행해야합니까? 왜 내 전설이 내 스크립트에 지정된 방식으로 나타나지 않습니까?
Re : 범례가 저장된 PNG를 표시하지 않음샘플 데이터로 비슷한 스크립트가 작동했습니다. "직렬"열 또는 측정 열을 사용하여 색상을 지정하려고합니까?
Re : 범례가 저장된 PNG를 표시하지 않음시리얼로. 여러 테스트를 거친 여러 부품이 있습니다. 스크립트에 표시된대로 일련 번호를 색상과 마커로보고 싶습니다. 결과를 보여주기 위해 원본 게시물에 사진을 추가합니다Re : 범례가 저장된 PNG를 표시하지 않음루프 내에서이 작업을 수행 할 때 문제는 Dispatch () 문이 ( ""|| SendToReport를 사용하지 않고 다음을 추가하는 것이 좋습니다.
current_graph rep[Frame Box(1)] << Row Legend(...)
Re : 범례가 저장된 PNG를 표시하지 않음SendToReport 내부에 두 개의 Dispatch가있을 때 어떻게해야합니까? 아니면 아래 코드처럼 두 번합니까?
current_graph rep[Frame Box(1)] <<
Dispatch(
{"Variability Chart for " || names[ip]},
"2",
ScaleBox,
{Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}
),<BR />current_graph rep[Frame Box(1)] <<
Dispatch(
{"Variability Chart for " || names[ip]},
"Variability Chart",
FrameBox,
{Row Legend(
Serial,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
);Re : 범례가 저장된 PNG를 표시하지 않음SendToReport와 Dispatch를 모두 피할 수 있다고 말했습니다. 각 디스패치 명령은 기본적으로 표시 상자를 식별하여 메시지를 보냅니다. 플랫폼이 시작되면 두 명령이 다음과 같이됩니다.
</CODE></PRE>
<P> </P>
<P> </P>
<P> </P></LINGO-BODY><LINGO-SUB id="lingo-sub-232818" slang="en-US">Re : 범례가 저장된 PNG를 표시하지 않음</LINGO-SUB><LINGO-BODY id="lingo-body-232818" slang="en-US"><P>감사! 처음에는 작동하지 않지만 추가했습니다. </P><PRE><CODE class=" language-jsl">current_graph rep = current_graph << Report;<BR />current_graph rep[Scale Box(2)] << Label Row(...);<BR />current_graph rep<SPAN class="token punctuation">[</SPAN>Frame Box<SPAN class="token punctuation">(</SPAN><SPAN class="token number">1</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">]</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Row Legend(...);
프레임 박스와 스케일 박스 이전에 트릭을 수행하는 것처럼 보였습니다. 감사합니다!!!!!!!!