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:如何将图形添加到现有窗口你好@斯托克斯,
@txnelson和@Craige_Hales举了很好的例子。另一种方法是从一个窗口开始。如果您打开了数据表,请尝试使用此脚本。一旦你在那个窗口中制作了你想要的图表,你就可以从图中保存脚本。
New window ("lots of graphs",
v list box (
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
)
);
回复:JSL:如何将图形添加到现有窗口感谢您的帮助。
我将尝试将其与我的脚本一起使用。
@txnelson写道:
看看这个例子。它创建一个窗口,其中定义了 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>
@txnelson写道:
这里有两种在一个窗口中有多个输出的方法。还有其他方法
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>