Hi, I'm making a bivariate plot with several spline fits. I want to save only the graph portion to an image file, but not the fit data at the end. Is there a way to minimize all the fits, or have them populate to a separate window? When I minimize all the fits then view the script, it creates multiple instances of Dispatch( {}, "Smoothing Spline Fit", OutlineBox, {Close( 1 )} ), however when re-running the script, it only minimizes the first fit.
Trend = Bivariate(
Y( :Ycol ),
X( :Xcol ),
Fit Where(
:colName == "fit1",
Fit Spline( 0.1, Standardized, {Line Color( {213, 72, 87} )} )
),
Fit Where(
:colName == "fit2",
Fit Spline( 0.1, Standardized, {Line Color( {57, 177, 67} )} )
),
Fit Where(
:colName == "fit3",
Fit Spline( 0.1, Standardized, {Line Color( {64, 111, 223} )} )
),
Fit Where(
:colName == "fit4",
Fit Spline( 0.1, Standardized, {Line Color( {207, 121, 38} )} )
),
Fit Where(
:colName == "fit5",
Fit Spline( 0.1, Standardized, {Line Color( {33, 189, 145} )} )
),
SendToReport(
Dispatch( {}, "1", ScaleBox, {Rotated Labels( 1 )} ),
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 400, 300 ), Row Legend(
colName,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch( {}, "Smoothing Spline Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Smoothing Spline Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Smoothing Spline Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Smoothing Spline Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Smoothing Spline Fit", OutlineBox, {Close( 1 )} )
)
);
Trend << Save Picture("\\path\file.png", png) ;