<?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 How alter shapes/text added through Add Graphic Script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895395#M105604</link>
    <description>&lt;P&gt;Let's say I want to add custom text or a shape on my graph using "Add Graphics Script":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

New Window( "Example",
	gb = Graph Builder(
		Size( 528, 456 ),
		Show Control Panel( 0 ),
		Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
		Elements( Points( X, Y, Legend( 9 ) ), Smoother( X, Y, Legend( 10 ) ) ), 
	
	)
);
rgb = gb &amp;lt;&amp;lt; Report;
framebox = rgb &amp;lt;&amp;lt; XPATH( "//FrameBox" );
framebox &amp;lt;&amp;lt; Add Graphics Script(
	"Front",
	Description( "CustomText" ),
	{
		Text( "left", 0.05, {100, 55}, "This is my custom text" ) ; 
		Line( {80, 50}, {160, 65} )
	}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How do I later change, let's say, font or font size? How do I change line color or style? How do I get references to them to do things like hide, show, delete, etc.?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2025 21:50:38 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2025-08-19T21:50:38Z</dc:date>
    <item>
      <title>How alter shapes/text added through Add Graphic Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895395#M105604</link>
      <description>&lt;P&gt;Let's say I want to add custom text or a shape on my graph using "Add Graphics Script":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

New Window( "Example",
	gb = Graph Builder(
		Size( 528, 456 ),
		Show Control Panel( 0 ),
		Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
		Elements( Points( X, Y, Legend( 9 ) ), Smoother( X, Y, Legend( 10 ) ) ), 
	
	)
);
rgb = gb &amp;lt;&amp;lt; Report;
framebox = rgb &amp;lt;&amp;lt; XPATH( "//FrameBox" );
framebox &amp;lt;&amp;lt; Add Graphics Script(
	"Front",
	Description( "CustomText" ),
	{
		Text( "left", 0.05, {100, 55}, "This is my custom text" ) ; 
		Line( {80, 50}, {160, 65} )
	}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How do I later change, let's say, font or font size? How do I change line color or style? How do I get references to them to do things like hide, show, delete, etc.?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 21:50:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895395#M105604</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-08-19T21:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How alter shapes/text added through Add Graphic Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895408#M105605</link>
      <description>&lt;P&gt;Here is an example taken directly from the Scripting Index for the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Delete Graphics Script&lt;/P&gt;
&lt;P&gt;message&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 ), FitLine );
rbiv = biv &amp;lt;&amp;lt; report;
framebox = rbiv[frame box( 1 )];
framebox &amp;lt;&amp;lt; Add Graphics Script(
	Transparency( 0.5 );
	Fill Color( {1.0, 0.5, 0.0} );
	Polygon( [60, 72, 57], [75, 120, 120] );
);
framebox &amp;lt;&amp;lt; Add Graphics Script(
	Transparency( 0.5 );
	Fill Color( {0.0, 0.5, 1.0} );
	Polygon( [60, 72, 57], [150, 120, 120] );
);
Wait( 2 );
framebox &amp;lt;&amp;lt; Remove Graphics Script( 2 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Aug 2025 00:26:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895408#M105605</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-08-20T00:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How alter shapes/text added through Add Graphic Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895424#M105610</link>
      <description>&lt;P&gt;Ok, that covers some of it.&lt;/P&gt;
&lt;P&gt;What if I want that text to be &lt;FONT size="2"&gt;smaller&lt;/FONT&gt; in the first place? Or &lt;FONT color="#0000FF"&gt;blue&lt;/FONT&gt;? Or &lt;EM&gt;italics&lt;/EM&gt;? How do I achieve that?&lt;/P&gt;
&lt;P&gt;And what if I want line to be dotted and also blue?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 05:29:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895424#M105610</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-08-20T05:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How alter shapes/text added through Add Graphic Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895437#M105612</link>
      <description>&lt;P&gt;Scripting index has answer to all of these (Text Size, Text Font, Text Color)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	Graph Box(
		Text Size(100);
		Text Color("Blue");
		Text Font("", "italic");
		Text({50, 20}, "label");
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pen Color(), Line Style()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Line Style Example",
	Graph Box(
		Frame Size(500, 400),
		Line Style("Dotted");
		Pen Color("Blue");
		Pen Size(2);
		Line([10 30 90], [88 22 44]);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://origin-www.jmp.com/support/help/en/18.2/#page/jmp/add-lines-arrows-points-shapes-and-text.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Scripting Graphs &amp;gt; Add Lines, Arrows, Points, Shapes, and Text&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: added link to Scripting Guide&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 05:51:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895437#M105612</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-08-20T05:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How alter shapes/text added through Add Graphic Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895439#M105613</link>
      <description>&lt;P&gt;I figured the rest. They come as separate commands in Graphics Script. Not as properties of or messages to "Text" or "Line".&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 05:54:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/895439#M105613</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-08-20T05:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How alter shapes/text added through Add Graphic Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/909697#M106840</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a great example, but I think you meant to write "Remove Graphics Script" instead of "Delete Graphics Script".&lt;/P&gt;
&lt;P&gt;By the way, the Scripting Index is online now. &lt;A href="https://jsl.jmp.com/" target="_blank"&gt;https://jsl.jmp.com&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can link directly to functions and messages:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://jsl.jmp.com/All%20Categories/Display%20Boxes/FrameBox.html#remove-graphics-script" target="_blank"&gt;https://jsl.jmp.com/All%20Categories/Display%20Boxes/FrameBox.html#remove-graphics-script&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You won't be able to run directly from the web page like you can from the Scripting Index in JMP, but there's a convenient copy button for each script in the top right corner.&amp;nbsp; The online Scripting Index can help JMP Live user's edit their scripts on a device that doesn't have JMP installed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Powell_JMP_0-1761328071728.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85676iBE3253E030034D28/image-size/large?v=v2&amp;amp;px=999" role="button" title="John_Powell_JMP_0-1761328071728.png" alt="John_Powell_JMP_0-1761328071728.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope you find this useful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 18:04:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-alter-shapes-text-added-through-Add-Graphic-Script/m-p/909697#M106840</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2025-10-24T18:04:12Z</dc:date>
    </item>
  </channel>
</rss>

