<?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: Spline Fit Line Legend in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454757#M70110</link>
    <description>&lt;P&gt;I'm not quite sure what you mean by '&lt;SPAN&gt;get the line legends'. Using the example below, could you be a little more specific about what information you want to get from the report, please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-01-26 at 14.57.35.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39441i47D40B7809CB32DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-01-26 at 14.57.35.png" alt="Screenshot 2022-01-26 at 14.57.35.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 15:00:25 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2022-01-26T15:00:25Z</dc:date>
    <item>
      <title>Spline Fit Line Legend</title>
      <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454601#M70096</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to create bivariate plots with a fit spline. However, I am trying to get the line legends but with no success. How can I get and save the line legend? Please help&lt;/P&gt;&lt;P&gt;Here's my function&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;bivplot_mrw = Function({ ycol }, {plot},
						
						biv = Bivariate( Y( Column(dt, ycol) ), X( Column( dt, mrwname ) ), Group By( Column( dt, grpname2 ) ), 
										 Fit Spline( 1000 ) );			
												
						rbiv = biv &amp;lt;&amp;lt; report &amp;lt;&amp;lt; Show Points( 0 );
						
						ylist = {};	
							
						For(g2 = 1, g2 &amp;lt;= Nitems(grplist2[1]), g2++,
							Try(
							curvename = rbiv[Outline Box( g2 + 1 )] &amp;lt;&amp;lt; Get Title;
								
							//Compute max and min per spline fit line to get y-axis max and min
							current_row = storows2[ Contains( stolist2, grplist2[3][g2] ) ];	//Get the stolist rows for grplist2[g2]
							current_row &amp;lt;&amp;lt; Intersect( grprows[ Contains( grplist, grplist2[2][g2] ) ]);
							current_row = Matrix( current_row &amp;lt;&amp;lt; Get Keys );
							xin = Column( dt, mrwname)[current_row];
							yin = Column( dt, ycol)[current_row];
							Try(ypred = Spline Eval( xin, Spline Coef( xin, yin, 1000 ) ));
							ylist = Concat(ylist, As List(ypred));
								
							//Adjust also the line style
							If(
								Contains( curvename, linestyle["ddd"] ),
									biv &amp;lt;&amp;lt; (Curve[g2] &amp;lt;&amp;lt; Line Style( DashDotDot )),
								Contains( curvename, linestyle["dash"] ),
									biv &amp;lt;&amp;lt; (Curve[g2] &amp;lt;&amp;lt; Line Style( Dashed ))
								);
							));	
													
						Try( paxis = axiscalc( Min(ylist), Max(ylist) ), Show("axiscalc error for "||ycol) );
						Try( xaxis = axiscalc( mrwmin, mrwmax ), Show("axiscalc error for MRW") );
						
						rbiv[Frame Box( 1 )] &amp;lt;&amp;lt; {Frame Size( 205, 164 ), Marker Size( 1 ), Line Width Scale( 2 )};
							
						Try( rbiv[Axis Box( 1 )] &amp;lt;&amp;lt; Max( paxis["Max"] ) &amp;lt;&amp;lt; Min( paxis["Min"] ) &amp;lt;&amp;lt; Inc( paxis["Inc"] ) &amp;lt;&amp;lt; Minor Ticks( paxis["Ntick"] ) );
						Try( rbiv[Axis Box( 2 )] &amp;lt;&amp;lt; Max( xaxis["Max"] ) &amp;lt;&amp;lt; Min( xaxis["Min"] ) &amp;lt;&amp;lt; Inc( xaxis["Inc"] ) &amp;lt;&amp;lt; Minor Ticks( xaxis["Ntick"] ) );
					
						rbiv[Axis Box( 1 )] &amp;lt;&amp;lt; Format( "Best", 12 ) &amp;lt;&amp;lt; Tick Font( style( 1 ), size( 9 ) )
											&amp;lt;&amp;lt; Show Major Grid( 1 ) &amp;lt;&amp;lt; Show Minor Grid( 1 ) &amp;lt;&amp;lt; Show Minor Ticks( 1 );
							
						rbiv[Axis Box( 2 )] &amp;lt;&amp;lt; Format( "Best", 12 ) &amp;lt;&amp;lt; Tick Font( style( 1 ), size( 9 ) )
											&amp;lt;&amp;lt; Show Major Grid( 1 ) &amp;lt;&amp;lt; Show Minor Grid( 1 ) &amp;lt;&amp;lt; Show Minor Ticks( 1 );
							
						rbiv[Text Edit Box( 1 )] &amp;lt;&amp;lt; Set Font Size( 10 ) &amp;lt;&amp;lt;	Set Font Style( "Bold" );
						rbiv[Text Edit Box( 2 )] &amp;lt;&amp;lt; Set Font Size( 10 ) &amp;lt;&amp;lt;	Set Font Style( "Bold" );
						(rbiv &amp;lt;&amp;lt; xpath( "//OutlineBox" )) &amp;lt;&amp;lt; Close;
						rbiv[Outline Box( 1 )] &amp;lt;&amp;lt; Set Title( ycol );
						rbiv[Border Box( 2 )] &amp;lt;&amp;lt; Delete Box;
							
						rbiv[Outline Box( 1 )] &amp;lt;&amp;lt; Open All Like This;
						
					);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:43:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454601#M70096</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-10T23:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Spline Fit Line Legend</title>
      <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454757#M70110</link>
      <description>&lt;P&gt;I'm not quite sure what you mean by '&lt;SPAN&gt;get the line legends'. Using the example below, could you be a little more specific about what information you want to get from the report, please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-01-26 at 14.57.35.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39441i47D40B7809CB32DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-01-26 at 14.57.35.png" alt="Screenshot 2022-01-26 at 14.57.35.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:00:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454757#M70110</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2022-01-26T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Spline Fit Line Legend</title>
      <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454765#M70112</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;, I am not sure what you are asking either, but here is a simple example to illustrate the syntax to access the commands in the red triangle menu for each fit:&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 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt &amp;lt;&amp;lt; Bivariate(
	Y( :weight ),
	X( :height ),
	Fit Spline( 10 )
);

biv &amp;lt;&amp;lt; (Curve[1] &amp;lt;&amp;lt; Line Color( "Green" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:20:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/454765#M70112</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-01-26T15:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spline Fit Line Legend</title>
      <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/455000#M70149</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605" target="_blank" rel="noopener"&gt;ian_jmp&lt;/A&gt;, I wanted to save/get the line legend as an image so I can use it on other slides in my powerpoint&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:20:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/455000#M70149</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2022-01-26T23:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spline Fit Line Legend</title>
      <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/455005#M70150</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358" target="_blank" rel="noopener"&gt;markbailey&lt;/A&gt;, I just need to have the line legends saved as an image so that I can use it on several slides in my powerpoint.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:22:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/455005#M70150</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2022-01-26T23:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spline Fit Line Legend</title>
      <link>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/456207#M70169</link>
      <description>&lt;P&gt;Does this help?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate(
				Y( :weight ),
				X( :height ),
				Show Points( 0 ),
				Fit Where( :sex == "F", Fit Spline( 1000, {Line Color( {212, 73, 88} )} ) ),
				Fit Where( :sex == "M", Fit Spline( 1000, {Line Color( {66, 112, 221} )} ) ),
				SendToReport(
					Dispatch(
						{},
						"Bivar Plot",
						FrameBox,
						{Grid Line Order( 1 ), Reference Line Order( 2 )}
					)
				)
			);

bivRep = Report(biv);
pb2Pic = bivRep[PictureBox(2)] &amp;lt;&amp;lt; getPicture(Scale(1.5));
nw = New Window("Example", pb2Pic);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:07:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Spline-Fit-Line-Legend/m-p/456207#M70169</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2022-01-27T13:07:47Z</dc:date>
    </item>
  </channel>
</rss>

