<?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: How to perform polygon offset outward in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881010#M104489</link>
    <description>&lt;P&gt;Where is the original hexagon coming from?&lt;/P&gt;
&lt;P&gt;Are you producing it using a JMP Graph Box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specific details will be very helpful&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 16:48:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-06-23T16:48:53Z</dc:date>
    <item>
      <title>How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/880894#M104470</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I would like to ask whether we could perform polygon offset outward in JMP. If yes, could you instruct me how to do it.&lt;BR /&gt;Assume I have coordinate of hexagon and I would like to draw buffer zone with distance =10 around hexagon. How could I do that&lt;BR /&gt;&lt;BR /&gt;Thank a lot&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 08:38:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/880894#M104470</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2025-06-23T08:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881010#M104489</link>
      <description>&lt;P&gt;Where is the original hexagon coming from?&lt;/P&gt;
&lt;P&gt;Are you producing it using a JMP Graph Box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specific details will be very helpful&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 16:48:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881010#M104489</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-06-23T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881089#M104497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&lt;BR /&gt;The polygon gets from contour plot by saving contour&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhamBao_0-1750741477039.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77253iA290E14AC8F7A995/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhamBao_0-1750741477039.png" alt="PhamBao_0-1750741477039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After saving contours, I plot X and Y Chart. How could I draw offset along polygon contour. THank a lot&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhamBao_2-1750741603513.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77255iB2ED0F5CBBEEE23E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhamBao_2-1750741603513.png" alt="PhamBao_2-1750741603513.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 05:07:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881089#M104497</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2025-06-24T05:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881125#M104506</link>
      <description>&lt;P&gt;JMP provides the ability to add to any graphic output additional graphic using Add Graphics Script.&amp;nbsp; The Scripting Index provides documentation and examples of how to add additional objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help=&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;A complete set of graphic primitives are available in JSL.&lt;/P&gt;
&lt;P&gt;Here is a simple example taken directly from the Scripting Guide that illustrates this capability&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] );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1750754171858.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77262i8AF5D98F8F0B2647/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1750754171858.png" alt="txnelson_0-1750754171858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 08:36:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881125#M104506</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-06-24T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881468#M104561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;as your chart, we manually put number into graph to draw polygon. Is there anyway that we could do by scripting? For instance,&lt;BR /&gt;we got a list of coordinate in X and Y and have a distance. How could I perform calculation by scripting&lt;BR /&gt;&lt;BR /&gt;In addition, I also would like to ask one question. When I plot Contour graph and save contour, JMP will generate out table with coordinate of X and Y.&amp;nbsp;&lt;BR /&gt;I faced the problem that when I use syntax such as In Polygon (a,b, x matrix, y matrix), it returns incorrect result. Even some points are inside polygon, but JMP returns these points out of Polygon&lt;BR /&gt;&lt;BR /&gt;Do I need to perform sorting or process data before using In Polygon&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:36:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881468#M104561</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2025-06-25T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881517#M104571</link>
      <description>&lt;P&gt;Have you tried plotting the polygon you getting and does it look like what you expect?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 17:03:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881517#M104571</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-25T17:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform polygon offset outward in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881768#M104575</link>
      <description>&lt;P&gt;I am thinking that when you say that "we manually put number into graph", you are indicating that the JSL is "hard coded" for a specific polygon.&amp;nbsp; Yes that is true, but that does not mean that it has to be hard coded.&amp;nbsp; JSL is a complete scripting language.&amp;nbsp; The numerical values that define whatever polygon you want to generate can be calculated using JSL and then used within the Polygon() function to draw the polygon you want to be displayed.&amp;nbsp; I suspect that if what you want is to draw a polygon 10 units around the points that you are displaying, that you will probably have to loop through all of the values, calculating the distance from the mean of all of the x,y values to the specific point, and the add 10 units to the didtance, and then calculate the x,y point of that value.&amp;nbsp; Of something like that.&amp;nbsp; But that is all possible within JSL.&amp;nbsp; Below is a simple example of drawing a polygon to include the maximum x and y points.\&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 ),
	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} );
	// Find the max X point and it's y value
	maxX = col max(:height);
	maxXyvalue = :weight[(dt &amp;lt;&amp;lt; get rows where(:height==maxX))[1]];
	minX = col min(:height);
	minXyvalue = :weight[(dt &amp;lt;&amp;lt; get rows where(:height==minX))[1]];	
	
	maxY = col max(:weight);
	maxYxvalue = :Height[(dt &amp;lt;&amp;lt; get rows where(:weight==maxY))[1]];
	minY = col min(:weight);
	minYxvalue = :Height[(dt &amp;lt;&amp;lt; get rows where(:weight==minY))[1]];
	polygon((maxX||minX||minYxvalue||maxYxvalue)`, (maxXyvalue || minXyvalue || minY ||maxY)` );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1750879479436.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77397i3BC1EF9AA9506F23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1750879479436.png" alt="txnelson_0-1750879479436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 19:24:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-perform-polygon-offset-outward-in-JMP/m-p/881768#M104575</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-06-25T19:24:46Z</dc:date>
    </item>
  </channel>
</rss>

