你好,编程不是很好,但随着我可以谷歌搜索的东西的移动速度变慢。但无论我尝试做什么,
Current Journal () << Save PDF(blah blah)
只保存最后一个情节。 即使我注释掉上面的行并且只有
biv << Journal
该脚本将输出带有 2 个图的 Journal。 不确定如何让 PDF 保存两个图?
父代码...
Data Table( "Daily Pull" ) << Join(
With( Data Table( "Key" ) ),
By Matching Columns( :Name( "Hello" ) = :Name( "Hello" ) ),
Drop multiples( 0, 0 ),
Include Nonmatches( 0, 0 ),
Preserve main table order( 1 )
);
biv = Bivariate(
SendToByGroup( {:Recipe == "Pizza"} ),
Y( :VALUE ),
X( :PROCESS_DATE ),
By( :Recipe ),
SendToByGroup(
{:Recipe == "Pizza"},
SendToReport(
Dispatch(
{"Bivariate Fit of VALUE By PROCESS_DATE Recipe=Pizza"},
"2",
ScaleBox,
{Min( 150 ), Max( 210 ), Inc( 5 ), Minor Ticks( 0 )}
),
Dispatch(
{"Bivariate Fit of VALUE By PROCESS_DATE Recipe=Pizza"},
"Bivar Plot",
FrameBox,
{Row Legend(
:ENTITY,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
),
SendToByGroup(
{:Recipe == "Rice"},
SendToReport(
Dispatch(
{"Bivariate Fit of VALUE By PROCESS_DATE Recipe=Rice"},
"2",
ScaleBox,
{Min( 200 ), Max( 260 ), Inc( 5 ), Minor Ticks( 0 )}
),
Dispatch(
{"Bivariate Fit of VALUE By PROCESS_DATE Recipe=Rice"},
"Bivar Plot",
FrameBox,
{Row Legend(
ENTITY,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
)
);
jrn = biv << Journal jrn << SavePDF( "$DOCUMENTS\test.pdf" );我认为最后一行缺少分号:
jrn = biv << Journal<FONT face="arial black,avant garde"><STRONG>;</STRONG></FONT> jrn << SavePDF( "$DOCUMENTS\test.pdf" );
即使使用这个分号,脚本也不会按照您的预期执行。问题是 (biv<
{Bivariate[], Bivariate[]}
因此 <
biv << Journal; Current Journal() << SavePDF( "$DOCUMENTS\test.pdf" );
如果您更喜欢直接从报告中保存 PDF 而不是创建日志,您可以执行以下操作:
(biv[1]<<TOPPARENT></TOPPARENT>
这确实假设 biv 是一个列表,如果您曾经对仅具有单个级别的副变量的数据运行脚本,则不会出现这种情况。如果您需要处理这两种情况,您可能会使用类似的东西:
If (IsList(biv),rpt=(biv[1]<<TOPPARENT></TOPPARENT>