<?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: Possible to overlay text on a plot? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681854#M86750</link>
    <description>&lt;P&gt;Build the graph as you want it to be.&amp;nbsp; Then using the annotation tool icons select the text icon&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1695865378495.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57051i1A3BD95A5718D9A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1695865378495.png" alt="txnelson_0-1695865378495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and add in the text you want on the place on the graph where you want it.&amp;nbsp; Right clicking on the&amp;nbsp; annotation will allow you to set the font and color etc.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1695865505332.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57052i5797AA218CD5D984/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1695865505332.png" alt="txnelson_1-1695865505332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then go to the red triangle and select to save the script to a script window, and you will get a script that will create the graph and the annotation.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Size( 522, 486 ),
	Show Control Panel( 0 ),
	Variables(
		X( :age, Order By( :age, Descending, Order Statistic( "N" ) ) ),
		Group X( :sex )
	),
	Elements( Bar( X, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			Add Text Annotation(
				Text( "Overlay Text Here" ),
				Fixed Size( 0 ),
				Text Box( {46, 31, 224, 68} ),
				Text Color( "Medium Dark Red" ),
				Font( "Segoe UI", 14, "Bold" ),
				Filled( 0 )
			)
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2023 01:46:29 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-09-28T01:46:29Z</dc:date>
    <item>
      <title>Possible to overlay text on a plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681814#M86744</link>
      <description>&lt;P&gt;Hi. &amp;nbsp;Does anyone know if there is a scripting method to add text on top of a plot? &amp;nbsp;For example, I have a script to create a pareto plot and I'd like to add text over the plot, as shown in the attached file. &amp;nbsp;Note I don't mean adding a title above the plot. &amp;nbsp;I mean to ask if there is a way to actually place the text within the plot area. &amp;nbsp;I feel there is a way, but so far my search has been unsuccessful. &amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using JMP Pro 17.2.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 23:17:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681814#M86744</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-09-27T23:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to overlay text on a plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681854#M86750</link>
      <description>&lt;P&gt;Build the graph as you want it to be.&amp;nbsp; Then using the annotation tool icons select the text icon&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1695865378495.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57051i1A3BD95A5718D9A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1695865378495.png" alt="txnelson_0-1695865378495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and add in the text you want on the place on the graph where you want it.&amp;nbsp; Right clicking on the&amp;nbsp; annotation will allow you to set the font and color etc.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1695865505332.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57052i5797AA218CD5D984/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1695865505332.png" alt="txnelson_1-1695865505332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then go to the red triangle and select to save the script to a script window, and you will get a script that will create the graph and the annotation.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Size( 522, 486 ),
	Show Control Panel( 0 ),
	Variables(
		X( :age, Order By( :age, Descending, Order Statistic( "N" ) ) ),
		Group X( :sex )
	),
	Elements( Bar( X, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			Add Text Annotation(
				Text( "Overlay Text Here" ),
				Fixed Size( 0 ),
				Text Box( {46, 31, 224, 68} ),
				Text Color( "Medium Dark Red" ),
				Font( "Segoe UI", 14, "Bold" ),
				Filled( 0 )
			)
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 01:46:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681854#M86750</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-28T01:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to overlay text on a plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681981#M86768</link>
      <description>&lt;P&gt;Thanks Jim. &amp;nbsp;That's exactly what I needed. &amp;nbsp;Works perfectly.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:40:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/681981#M86768</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-09-28T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to overlay text on a plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/682343#M86790</link>
      <description>&lt;P&gt;Another approach is to add a graphics script. Many graphics functions support the display of text:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="index.PNG" style="width: 958px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57097iE4107BB167CFC9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="index.PNG" alt="index.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is an example of another way to add text to a plot:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

obj = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);

rpt = obj &amp;lt;&amp;lt; Report;

rpt[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
	Text( { 55, 160 }, "Here I am!" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 13:48:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Possible-to-overlay-text-on-a-plot/m-p/682343#M86790</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-09-29T13:48:45Z</dc:date>
    </item>
  </channel>
</rss>

