保存分布图大家好,
我有一个分布图,我想将图像保存为 png。 但是,我得到的唯一图像是最后生成的图像。 我怎样才能保存所有的地块?
dt_dist = Distribution(
Nominal Distribution( Column( :age ), Horizontal Layout( 1 ), Vertical( 0 ) ),
By( :sex )
);
dist = dt_dist << get picture;
dist << Save Picture( "C:\distribution_plot.png", "png" );

自动化和脚本回复:保存分布图当您使用 By() 命令时,平台返回一个列表,这意味着 dist 实际上是一个具有 2 个值的列表(在本例中为 dist[1] 和 dist[2])。 可能有更优雅的方法来完成此操作,但一种方法是使用 Current Report () 获取对整个当前窗口的引用:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt_dist = Distribution(
Nominal Distribution( Column( :age ), Horizontal Layout( 1 ), Vertical( 0 ) ),
By( :sex )
);
rpt = Current Report();
dist = rpt << get picture;
dist << Save Picture( "$DESKTOP\distribution_plot.png", "png" );