微軟幻燈片軟件嗨,我有這段代碼,它顯示了一個帶有多個繪圖的窗口。 問題是,如何將 powerpoint 中的輸出保存為一張幻燈片?
New Window( "Para v PGT",
Lineup Box( N Col( 3 ),
For( i = 1, i <= N Items( colname ), i++,
For( j = 1, j <= N Items( colnamex ), j++,
biv = Bivariate( Y( Column( dt, colname[i] ) ), X( Column( dt, colnamex[j] ) ), group by( groupcol ) );
rbiv = biv << report;
rbiv[FrameBox( 1 )] << {Frame Size( 240, 190 ), Marker Size( 1 ), Line Width Scale( 3 )};
rbiv[axis box( 2 )] << Tick Font( style( 1 ), size( 9 ) ) << Show Major Grid( 1 ) << Show Minor Grid( 1 ) << Show Minor Ticks( 1 );
rbiv[axis box( 1 )] << Tick Font( style( 1 ), size( 9 ) ) << Show Major Grid( 1 ) << Show Minor Grid( 1 ) << Show Minor Ticks( 1 );
rbiv[Text Edit Box( 2 )] << Set Font Size( 10 ) << Set Font Style( "Bold" );
rbiv[Text Edit Box( 1 )] << Set Font Size( 10 ) << Set Font Style( "Bold" );
)
)
)
);
回复:簡報Save Presentation() 函數將使用 Outline Box() 中的措辭作為圖表的標題。因此,如果您將我提供的上一個示例的最後幾行更改為以下內容,您將獲得所需的標題
titleOB = outline box("Here is the Title");
titleOB << append(ob<< get picture);
titleOB << save presentation( "$TEMP/jmp_example.pptx" );
Open( "$TEMP/jmp_example.pptx" );回复:簡報您好,感謝您的答复! 有沒有辦法讓它們像每張幻燈片的情節一樣輸出並放置幻燈片標題?
回复:簡報這是我如何處理此問題的示例。我只是將對象移動到單個圖片對像中,然後保存圖片對象。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/blood pressure.jmp" );
colname = {"BP 8M", "BP 12M", "BP 6M"};
colnamex = {"BP 8W", "BP 12W", "BP 6W"};
groupcol = Column( "Dose" );
ob = Outline Box( "",
Lineup Box( N Col( 3 ),
For( i = 1, i <= N Items( colname ), i++,
For( j = 1, j <= N Items( colnamex ), j++,
biv = Bivariate(
Y( Column( dt, colname[i] ) ),
X( Column( dt, colnamex[j] ) ),
group by( groupcol )
);
rbiv = biv << report;
rbiv[FrameBox( 1 )] << {Frame Size( 240, 190 ), Marker Size( 1 ), Line Width Scale( 3 )};
rbiv[axis box( 2 )] << Tick Font( style( 1 ), size( 9 ) ) << Show Major Grid( 1 ) <<
Show Minor Grid( 1 ) << Show Minor Ticks( 1 );
rbiv[axis box( 1 )] << Tick Font( style( 1 ), size( 9 ) ) << Show Major Grid( 1 ) <<
Show Minor Grid( 1 ) << Show Minor Ticks( 1 );
rbiv[Text Edit Box( 2 )] << Set Font Size( 10 ) << Set Font Style( "Bold" );
rbiv[Text Edit Box( 1 )] << Set Font Size( 10 ) << Set Font Style( "Bold" );
)
)
)
);
nwj = New Window( "Para v PGT", <<JOURNAL></JOURNAL>
