圖例未顯示已保存的 PNGdt = 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 腳本? 為什麼我的圖例沒有按照我在腳本中指定的方式顯示。
回复:圖例未顯示已保存的 PNG謝謝! 起初它不起作用,但我補充說
current_graph rep = current_graph << Report;<BR />
在 Frame Box 和 Scale Box 之前,它似乎可以解決問題。 謝謝!!!!!!!!
回复:圖例未顯示已保存的 PNG我應該說你可以避免 SendToReport 和 Dispatch。每個 Dispatch 命令本質上標識一個顯示框並向其發送消息。平台啟動後,您的兩個命令將變為:
</CODE></PRE>
<P> </P>
<P> </P>
<P> </P></LINGO-BODY><LINGO-SUB id="lingo-sub-232804" slang="en-US">回复:圖例未顯示已保存的 PNG</LINGO-SUB><LINGO-BODY id="lingo-body-232804" slang="en-US"><P>當我在 SendToReport 中有兩個 Dispatch 時,我該怎麼做? 還是我像下面的代碼那樣做兩次?<BR /><BR /></P><PRE><CODE class=" language-jsl">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 )
)}
);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(...);
回复:圖例未顯示已保存的 PNG好的,在循環中執行此操作時的問題似乎是 Dispatch() 語句不能採用類似 ("Variability Chart for " || names[ip]) 的表達式。我認為您最好不要使用 SendToReport 而是添加:
current_graph rep[Frame Box(1)] << Row Legend(...)
回复:圖例未顯示已保存的 PNG由連續劇。 我有多個部分運行了幾個測試。 我想以我的腳本中顯示的顏色和標記查看序列號。 我將在我的原始帖子中添加一張圖片以顯示結果回复:圖例未顯示已保存的 PNG一個類似的腳本適用於我的示例數據。您是要按“序列”列還是按測量列著色?