<?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 Need help with &amp;quot;Add Text Annotation&amp;quot; - not working as expected in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498958#M73478</link>
    <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using this script to add text annotation to the plot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(Parse(Eval Insert(JSL Quote(
biv&amp;lt;&amp;lt;SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			Add Text Annotation(
				Text( "R²=^R2^ \!nSlope=^Slope^" ),
				/*Font( "Segoe UI", 12, "Plain" ),*/
				Fixed Size( 0 ),
				Text Box( 15, 15, 200, 200 ),
				Filled( 1 ), 
				Editable( 0 ),
				Background Color( "Light Yellow" ),
				Text Color( "^fitColor^" )
				
			)
		)
	);
)
)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't change Font in this case.&lt;/P&gt;&lt;P&gt;I get picture that is just fine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-02 11_15_34-Window.png" style="width: 374px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42918i4C46323FCEB9E5C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-02 11_15_34-Window.png" alt="2022-06-02 11_15_34-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with one exception - it's going to to be imported to a PPTX and font size for that text is too small. I need it bigger.&lt;/P&gt;&lt;P&gt;So then when I uncomment the font line in the script above to change font size to 12, I get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-02 11_16_28-Window.png" style="width: 380px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42919i4410F895E92B0B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-02 11_16_28-Window.png" alt="2022-06-02 11_16_28-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks to me that the Text Box ignores the sizes I provide (&lt;CODE class=" language-jsl"&gt;Text Box( 15, 15, 200, 200 )&lt;/CODE&gt;) and draws box enough to fit the text, but then it only considers the default text font and size, if I increase text size or change font to one that has bigger\wider symbols, text box is not enough anymore. I can manually resize it, but this is part of automated script to produce reports in PPTX.&lt;/P&gt;&lt;P&gt;Any ideas how to make the text bigger and text box not clip it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 17:00:32 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2023-06-09T17:00:32Z</dc:date>
    <item>
      <title>Need help with "Add Text Annotation" - not working as expected</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498958#M73478</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using this script to add text annotation to the plot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(Parse(Eval Insert(JSL Quote(
biv&amp;lt;&amp;lt;SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			Add Text Annotation(
				Text( "R²=^R2^ \!nSlope=^Slope^" ),
				/*Font( "Segoe UI", 12, "Plain" ),*/
				Fixed Size( 0 ),
				Text Box( 15, 15, 200, 200 ),
				Filled( 1 ), 
				Editable( 0 ),
				Background Color( "Light Yellow" ),
				Text Color( "^fitColor^" )
				
			)
		)
	);
)
)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't change Font in this case.&lt;/P&gt;&lt;P&gt;I get picture that is just fine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-02 11_15_34-Window.png" style="width: 374px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42918i4C46323FCEB9E5C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-02 11_15_34-Window.png" alt="2022-06-02 11_15_34-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with one exception - it's going to to be imported to a PPTX and font size for that text is too small. I need it bigger.&lt;/P&gt;&lt;P&gt;So then when I uncomment the font line in the script above to change font size to 12, I get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-02 11_16_28-Window.png" style="width: 380px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42919i4410F895E92B0B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-02 11_16_28-Window.png" alt="2022-06-02 11_16_28-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks to me that the Text Box ignores the sizes I provide (&lt;CODE class=" language-jsl"&gt;Text Box( 15, 15, 200, 200 )&lt;/CODE&gt;) and draws box enough to fit the text, but then it only considers the default text font and size, if I increase text size or change font to one that has bigger\wider symbols, text box is not enough anymore. I can manually resize it, but this is part of automated script to produce reports in PPTX.&lt;/P&gt;&lt;P&gt;Any ideas how to make the text bigger and text box not clip it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:00:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498958#M73478</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T17:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with "Add Text Annotation" - not working as expected</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498986#M73479</link>
      <description>&lt;P&gt;Most likely scripting index can help you with this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1654197914234.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42921iB00F2235C557E32F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1654197914234.png" alt="jthi_1-1654197914234.png" /&gt;&lt;/span&gt;&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("$SAMPLE_DATA/Big Class.jmp");
biv = bivariate(y(:weight), x(:height));
rbiv = biv &amp;lt;&amp;lt; report;
ta = rbiv &amp;lt;&amp;lt; Add Text Annotation();
ta &amp;lt;&amp;lt; Text("We need to discuss this at the next meeting.");
ta &amp;lt;&amp;lt; Text Box({65, 50, 400, 300});
ta &amp;lt;&amp;lt; Font("Times New Roman", 14, "Bold");
ta &amp;lt;&amp;lt; Fixed Size(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1654197958615.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42922i8092810DB05A752E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1654197958615.png" alt="jthi_2-1654197958615.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 19:26:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498986#M73479</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-02T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with "Add Text Annotation" - not working as expected</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498995#M73480</link>
      <description>&lt;P&gt;Yeah I tried it with different sizes and Fixed Size 1 or 0.&lt;/P&gt;&lt;P&gt;What helped - sending separate messages to the text annotations, not using SendToReport message.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 19:31:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/498995#M73480</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-06-02T19:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with "Add Text Annotation" - not working as expected</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/499000#M73481</link>
      <description>&lt;P&gt;Answer from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp; implies the culprit was the Fixed Size(1) - but it wasn't working still. What did help was how&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;was handling the whole thing.&lt;/P&gt;&lt;P&gt;I initially did &amp;lt;&amp;lt;SendToReport message, while&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp; created Text Annotation explicitly and manipulated it using this style:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ta = rbiv &amp;lt;&amp;lt; Add Text Annotation();
ta &amp;lt;&amp;lt; Text("We need to discuss this at the next meeting.");
ta &amp;lt;&amp;lt; Text Box({65, 50, 400, 300});
ta &amp;lt;&amp;lt; Font("Times New Roman", 14, "Bold");
ta &amp;lt;&amp;lt; Fixed Size(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ideally there shouldn't be any difference, but there is, apparently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 19:39:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-quot-Add-Text-Annotation-quot-not-working-as/m-p/499000#M73481</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-06-02T19:39:21Z</dc:date>
    </item>
  </channel>
</rss>

