<?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: adding text from outside bivariate in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/adding-text-from-outside-bivariate/m-p/38194#M22361</link>
    <description>&lt;P&gt;Here is an even more abriviated script that illustrates the answer to what I believe your question was.&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 = Bivariate( Y( :weight ), X( :height ), Fit Robust( {Line Color( {213, 72, 87} )} ) );

this_var = (Report( biv )[Outline Box( "Robust Fit" )][Number Col Box( 1 )] &amp;lt;&amp;lt; get)[1];
biv( report ) &amp;lt;&amp;lt; Add Text Annotation( Text( Char( this_var ) ), Text Box( {65, 35, 200, 77} ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another option would be to use "Add Graphic Text" which will give you better location and features&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both of these options are documented int the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;FrameBox&lt;/P&gt;</description>
    <pubDate>Sun, 16 Apr 2017 00:59:05 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-04-16T00:59:05Z</dc:date>
    <item>
      <title>adding text from outside bivariate</title>
      <link>https://community.jmp.com/t5/Discussions/adding-text-from-outside-bivariate/m-p/38193#M22360</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to position a text box on bivariate plot.&lt;/P&gt;
&lt;P&gt;The contents of text boxt are extracted from the bivariate report based on fit, so its not ready when I am constructing the bivariate in the first place.&lt;/P&gt;
&lt;P&gt;Please let me know the syntax regarding this. &lt;BR /&gt;Below is a simplified version of code I am using. I want to add number&amp;nbsp;"this_var" (at end) on bivariate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;					biv=Dt &amp;lt;&amp;lt; Fit Y by X(
						Robust Fit,
						X( Eval( Column( Dt, "X" )[rows[i]] ) ),
						Y( Eval( Column( Dt, "Y" )[rows[i]] ) ),
						Fit Robust( {Line Color( {213, 72, 87} ), Line Style( "Dotted" )} ),
						SendToReport(
							Dispatch(
								{},
								"Bivar Plot",
								FrameBox,
								{Frame Size( 799, 464 ), Marker Size( 12 ),
								Marker Drawing Mode( "Outlined" ),
								DispatchSeg( Line Seg( 1 ), {Line Style( "Dotted" )} ),
									Row Legend(
										:WAFER,
										Color( 0 ),
										Color Theme( "" ),
										Marker( 1 ),
										Marker Theme( "Standard" ),
										Continuous Scale( 0 ),
										Reverse Scale( 0 ),
										Excluded Rows( 0 )
									),
									//--display Value column entry here from Dt ---					
									Add Text Annotation( 
										Text( "Value:" || char(Format(Eval( Column( Dt, "Value" )[rows[i]] ), "Scientific", 10))), 
												Text Box( {100, 10, 404, 200} )
											)
								}
							)
						),
						
					)
					/* get the report into a variable */
					reportbiv = biv &amp;lt;&amp;lt; Report;
					this_var = Report( biv )[Outline Box( "Fit" )][NumberColBox(1)][2];
					//----Need to add above variable in a text box in bivariate plot above&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Apr 2017 22:11:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-text-from-outside-bivariate/m-p/38193#M22360</guid>
      <dc:creator>rahulsmils</dc:creator>
      <dc:date>2017-04-15T22:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: adding text from outside bivariate</title>
      <link>https://community.jmp.com/t5/Discussions/adding-text-from-outside-bivariate/m-p/38194#M22361</link>
      <description>&lt;P&gt;Here is an even more abriviated script that illustrates the answer to what I believe your question was.&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 = Bivariate( Y( :weight ), X( :height ), Fit Robust( {Line Color( {213, 72, 87} )} ) );

this_var = (Report( biv )[Outline Box( "Robust Fit" )][Number Col Box( 1 )] &amp;lt;&amp;lt; get)[1];
biv( report ) &amp;lt;&amp;lt; Add Text Annotation( Text( Char( this_var ) ), Text Box( {65, 35, 200, 77} ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another option would be to use "Add Graphic Text" which will give you better location and features&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both of these options are documented int the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;FrameBox&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2017 00:59:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-text-from-outside-bivariate/m-p/38194#M22361</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-16T00:59:05Z</dc:date>
    </item>
  </channel>
</rss>

