你好!
我已经学会了如何通过 jsl 脚本自动创建、插入和更新 JMP 图形到 PowerPoint 中(请参阅下面的脚本和参考)。 现在,我希望能够指定有关这些图表的更多项目:
1. PowerPoint 幻灯片上的位置
2.为PowerPoint幻灯片中的图形添加图片边框
这是我当前的脚本,它实际上打开数据、制作图表、保存它、将其插入到 PPoint 中,然后打开 PPoint。
********************************************************** ********************************************************** **
Names Default To Here( 1 );
dt = Open( "Blood_Pressure_Testing.jmp", invisible );
biv = dt << Graph Builder(
Size( 826, 596 ),
Show Control Panel( 0 ),
Variables( X( :Subject ), Y( :Dose ), Color( :BP 8M ) ),
Elements( Points( X, Y, Legend( 19 ) ) ),
Local Data Filter( Close Outline( 1 ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
19,
Properties(
0,
{gradient( {Color Theme( "Jet"(1) ), Discrete Colors( 1 )} )},
Item ID( "BP 8M", 1 )
),
Properties( 1, {Marker( "Filled Diamond" )}, Item ID( "Dose", 1 ) )
)}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "XXXXXXX" )} )
)
);
Report( biv )[Outline Box( 1 )] << Set title( "This is my title" );
//test comment - this works
Report( biv ) << journal;
biv << close window;
jour = Current Journal();
jour << Save Presentation( "<PATH to="" save="">" );
Open( "<PATH to="" powerpoint=""></PATH></PATH>
********************************************************** ********************************************************** **
谢谢您的帮助!
您可以从脚本索引(搜索演示文稿)或从JMP 帮助。 您也许可以通过构建自定义窗口并将其作为图像保存到 powerpoint 来执行您想要的操作。
通常我只是使用 JMP 创建报告图像,然后我有 Python 脚本(参数化),我称之为使用运行程序从这些图像创建我的幻灯片(我不使用 JMP 的 Python 集成,因为在我看来,这是一场噩梦开始工作)。