JSL:如何將圖形添加到現有窗口您好,我正在使用 JSL 與圖形生成器進行繪圖。
每個圖表通常都是在單獨的窗口中創建的,這會打開太多的窗口。
我想將每個圖形放入同一個窗口中,然後關閉新創建的窗口。
以下是我的 jsl 草稿,有人可以幫助我使其工作嗎?
謝謝。
WW1 = New Window( "graph1", Graph Builder() );
Window( "graph1" ) << Close Window();
WW2 = New Window( "graph2", Graph Builder() );
Window( "graph2" ) << Close Window();
WW3 = New Window( "graph3", Graph Builder() );
Window( "graph3" ) << Close Window();
回复:JSL:如何將圖形添加到現有窗口你好@斯托克斯,
@tx尼爾森和@Craige_Hales給出了很好的例子。另一種方法是從一個窗口開始。如果您打開了數據表,請嘗試使用此腳本。一旦您在該窗口中製作了所需的圖表,您就可以從圖中保存腳本。
New window ("lots of graphs",
v list box (
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
)
);
回复:JSL:如何將圖形添加到現有窗口感謝您的幫助。
我會嘗試將其與我的腳本放在一起。
@tx尼爾森寫道:
看一下這個例子。它創建一個窗口,並為其定義 20 個圖形,並且不創建其他圖形
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
nw = New Window( "graphs", myvlb = V List Box() );
colNamesList = dt << get column names( continuous, string );
For( i = 1, i <= 20, i++,
myvlb << append( oneway( x( :site ), y( Column( colNamesList[i] ) ) ) )
);
回复:JSL:如何將圖形添加到現有窗口看一下這個例子。它創建一個窗口,並為其定義 20 個圖形,並且不創建其他圖形
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
nw = New Window( "graphs", myvlb = V List Box() );
colNamesList = dt << get column names( continuous, string );
For( i = 1, i <= 20, i++,
myvlb << append( oneway( x( :site ), y( Column( colNamesList[i] ) ) ) )
);
回复:JSL:如何將圖形添加到現有窗口感謝您的解決方案,由於某種原因它在我的腳本中不起作用。
你能根據我下面的腳本幫忙修改一下嗎?
我正在繪製 200 多個圖表,這只能使用圖表生成器來完成。
所以我希望將圖形添加到同一個窗口圖形中,然後在繪製後關閉圖形生成器窗口。
否則,我最終會打開 200 個窗口。
WW1 <SPAN class="token operator">=</SPAN> <SPAN class="token function">New Window</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph1"</SPAN><SPAN class="token punctuation">,</SPAN> Graph Builder<SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Window<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph1"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> Close Window</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
WW2 <SPAN class="token operator">=</SPAN> <SPAN class="token function">New Window</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph2"</SPAN><SPAN class="token punctuation">,</SPAN> Graph Builder<SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Window<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph2"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> Close Window</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
WW3 <SPAN class="token operator">=</SPAN> <SPAN class="token function">New Window</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph3"</SPAN><SPAN class="token punctuation">,</SPAN> Graph Builder<SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Window<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph3"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> Close Window</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
@tx尼爾森寫道:
以下是在一個窗口中擁有多個輸出的兩種方法。還有其他方法
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
nw=new window("Example 1",
bivariate(x(:height), y(:weight)),
oneway(x(:sex),y(:weight))
);
nw2=new window("Example 2");
nw2<<APPEND></APPEND>
回复:JSL:如何將圖形添加到現有窗口我以前使用過journal,但是journal會凍結圖表,這意味著我無法再選擇圖表中的數據,它更像是一張圖片。
謝謝。
@Craige_Hales寫道:
日誌窗口也可能是一個解決方案。 在關閉窗口之前,將 <
回复:JSL:如何將圖形添加到現有窗口日誌窗口也可能是一個解決方案。 在關閉窗口之前,將 <回复:JSL:如何將圖形添加到現有窗口
以下是在一個窗口中擁有多個輸出的兩種方法。還有其他方法
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
nw=new window("Example 1",
bivariate(x(:height), y(:weight)),
oneway(x(:sex),y(:weight))
);
nw2=new window("Example 2");
nw2<<APPEND></APPEND>