<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to remove smoothing spline controls from bivariate fit in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472512#M71725</link>
    <description>&lt;P&gt;Use Show Properties to see under which display elements those are, then you can navigate report layer to set visibility to collapse. Here is quick example with XPath&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv = dt &amp;lt;&amp;lt;Bivariate(
	Y(:height),
	X(:weight),
	Fit Line({Line Color({76, 114, 176})}),
	Fit Spline(0.1, {Line Color({221, 132, 82})})
);

(Report(biv) &amp;lt;&amp;lt; XPath("//BorderBox"))[2] &amp;lt;&amp;lt; Visibility("Collapse");

//this might collapse too much, so make sure it doesn't
(Report(biv) &amp;lt;&amp;lt; XPath("//IfBox")) &amp;lt;&amp;lt; Visibility("Collapse");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Mar 2022 06:43:51 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-03-24T06:43:51Z</dc:date>
    <item>
      <title>How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472492#M71724</link>
      <description>&lt;P&gt;How do I delete Smoothing spline controls? I have a report with bunch of splines and this list of controls takes the whole page effectively collapsing the chart. I only need splines for visual guide, I don't care about the numbers. How do I remove it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-03-23 16_57_21-Clipboard.png" style="width: 404px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41081i2CE8AD0ACC70249F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-03-23 16_57_21-Clipboard.png" alt="2022-03-23 16_57_21-Clipboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:14:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472492#M71724</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T18:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472512#M71725</link>
      <description>&lt;P&gt;Use Show Properties to see under which display elements those are, then you can navigate report layer to set visibility to collapse. Here is quick example with XPath&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv = dt &amp;lt;&amp;lt;Bivariate(
	Y(:height),
	X(:weight),
	Fit Line({Line Color({76, 114, 176})}),
	Fit Spline(0.1, {Line Color({221, 132, 82})})
);

(Report(biv) &amp;lt;&amp;lt; XPath("//BorderBox"))[2] &amp;lt;&amp;lt; Visibility("Collapse");

//this might collapse too much, so make sure it doesn't
(Report(biv) &amp;lt;&amp;lt; XPath("//IfBox")) &amp;lt;&amp;lt; Visibility("Collapse");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 06:43:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472512#M71725</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-24T06:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472780#M71741</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to figure out what to do. I guess I just needed a way to get bunch of border boxes at once.&lt;/P&gt;&lt;P&gt;Anyways, couple of questions - For me collapsing IfBoxes collapses pretty much everything - window is empty. This is because I have other IfBoxes on the plot.&lt;/P&gt;&lt;P&gt;If I only use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;XPath("//BorderBox")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it will take care of the boxes in red frame:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-03-23 16_57_21-Clipboard.png" style="width: 271px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41128iB4CD07A38C5C11F0/image-dimensions/271x384?v=v2" width="271" height="384" role="button" title="2022-03-23 16_57_21-Clipboard.png" alt="2022-03-23 16_57_21-Clipboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Boxes in green frame that are controlling the splines below - those stay.&lt;/P&gt;&lt;P&gt;I can solve&amp;nbsp;it by saying&amp;nbsp;Report View ("Summary") when building the plot, so all in all it works, but I'm still wondering - how would I isolate those IfBoxes - Can I say something like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Xpath("//OutlineBox/IfBox")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(this one didn't work).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's full script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/* Open a sample data table */
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

Fit Group(
biv = dt &amp;lt;&amp;lt; Bivariate(
	Y( {:weight, :weight} ),
	X( :height ),
	/*Report View ("Summary"),*/
	Group By ("sex"),
	Fit Spline( 0.1, Standardized),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{DispatchSeg( Line Seg( 2 ), {Line Color( {66, 112, 221} )} )}
		)
	)
),
&amp;lt;&amp;lt;{Arrange in Rows( 3 )}
);

For Each({rbiv, index}, biv &amp;lt;&amp;lt; Report, 
(
rbiv &amp;lt;&amp;lt; XPath("//BorderBox"))[2]&amp;lt;&amp;lt;Visibility("Collapse");
/*rbiv &amp;lt;&amp;lt; Xpath("//IfBox")&amp;lt;&amp;lt; Visibility("Collapse");*/
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can make it work by uncommenting "Report View", but I also would like to understand how to do that using XPath (commented line at the end results in empty window).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 17:17:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472780#M71741</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-03-24T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472781#M71742</link>
      <description>&lt;P&gt;Use &amp;lt;&amp;lt; Get Xml (or you can try with &amp;lt;&amp;lt; Show Properties) to see what the report layer looks like. Then based on that you can build more complicated Xpaths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

/* Open a sample data table */
dt = Open("$SAMPLE_DATA\Big Class.jmp");

g = Fit Group(
	biv = dt &amp;lt;&amp;lt; Bivariate(
		Y({:weight, :weight}),
		X(:height),
		Report View("Summary"),
		Group By("sex"),
		Fit Spline(0.1, Standardized),
		SendToReport(Dispatch({}, "Bivar Plot", FrameBox, {DispatchSeg(Line Seg(2), {Line Color({66, 112, 221})})}))
	), &amp;lt;&amp;lt;{Arrange in Rows(3)}
);

Clear log();
Write(g &amp;lt;&amp;lt; get xml); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 17:26:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472781#M71742</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-24T17:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472832#M71745</link>
      <description>&lt;P&gt;Thanks, that's good to know.&lt;/P&gt;&lt;P&gt;I figured why it wasn't working in my case and was working in yours - parenthesis.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/* Open a sample data table */
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

Fit Group(
biv = dt &amp;lt;&amp;lt; Bivariate(
	Y( {:weight, :weight} ),
	X( :height ),
	/*Report View ("Summary"),*/
	Group By ("sex"),
	Fit Spline( 0.1, Standardized),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{DispatchSeg( Line Seg( 2 ), {Line Color( {66, 112, 221} )} )}
		)
	)
),
&amp;lt;&amp;lt;{Arrange in Rows( 3 )}
);

For Each({rbiv, index}, biv &amp;lt;&amp;lt; Report, 
(
rbiv &amp;lt;&amp;lt; XPath("//BorderBox"))[2]&amp;lt;&amp;lt;Visibility("Collapse");
//This way it works
(rbiv &amp;lt;&amp;lt; Xpath("//IfBox"))&amp;lt;&amp;lt; Visibility("Collapse");
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 18:59:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472832#M71745</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-03-24T18:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472833#M71746</link>
      <description>&lt;P&gt;One more thing came to my mind related to IfBox is that they do have special property. You can set the "if value" to 0 or 1, so it might be better idea than setting visibility to "Collapse". You could test by replacing the&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(rbiv &amp;lt;&amp;lt; Xpath("//IfBox"))&amp;lt;&amp;lt; Visibility("Collapse");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(rbiv &amp;lt;&amp;lt; Xpath("//IfBox"))&amp;lt;&amp;lt; Set(0);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 19:08:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472833#M71746</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-24T19:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove smoothing spline controls from bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472857#M71748</link>
      <description>&lt;P&gt;Thanks a lot again, it does work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While we're on Bivariate Fit platform - any way to change Font of the Legend?&lt;/P&gt;&lt;P&gt;I don't see it anywhere in GUI, and also the Legend seems to be StringColBox, and it doesn't accept anything related to Font.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 20:10:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-smoothing-spline-controls-from-bivariate-fit/m-p/472857#M71748</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-03-24T20:10:00Z</dc:date>
    </item>
  </channel>
</rss>

