<?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: Update Graphics Script with Local Data Filter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231632#M45939</link>
    <description>&lt;P&gt;Incredible. I cannot wait for my organization to upgrade!&lt;/P&gt;&lt;P&gt;In the meantime, I'll try to put something together for v14 as you described.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 15:45:33 GMT</pubDate>
    <dc:creator>burakbagdatli</dc:creator>
    <dc:date>2019-10-31T15:45:33Z</dc:date>
    <item>
      <title>Update Graphics Script with Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231591#M45926</link>
      <description>&lt;P&gt;Is there a way to make the graphics script obey the local data filter? I'm trying to get the convex hull of a select number of points within the data table. However, the graph script calculates the convex hull of all the points in the table ignoring the local data filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script I'm using for the convex hull is this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tri = Triangulation( X( :MXC, :MZC ) );
Path( tri &amp;lt;&amp;lt; Get Hull Path );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to send an update or recalculate kind of a command to this script as the user interfaces with the local data filter?&lt;/P&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="Convex hull with all the points" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19994iC2B1F34D03067A56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SelectionCH.png" alt="Convex hull with all the points" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Convex hull with all the points&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Convex hull remains but the points get filtered. I want to shrink the convex hull." style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19995i5B93A5EDA9323978/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SelectionCH_filter.png" alt="Convex hull remains but the points get filtered. I want to shrink the convex hull." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Convex hull remains but the points get filtered. I want to shrink the convex hull.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 12:03:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231591#M45926</guid>
      <dc:creator>burakbagdatli</dc:creator>
      <dc:date>2019-10-31T12:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update Graphics Script with Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231614#M45930</link>
      <description>&lt;P&gt;Check the Scripting Index example for the Box&amp;lt;&amp;lt;MakeRowStateHandler message.&amp;nbsp; This allows you to hook up a JSL callback when the filter row states change.&amp;nbsp; Unfortunately, the Triangulation object will use the global row states for the computation.&amp;nbsp; I think you would have to get the subset of values and pass in arrays of coordinates instead of column names for the X's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In JMP 15 Graph Builder the convex hull is directly available as part of the Contour element, when used with a color role.&amp;nbsp; In this case the contour is based on a triangulation, and you can turn off the contours and show only the boundary.&amp;nbsp; This script in JMP 15 will demonstrate the feature:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open("$SAMPLE_DATA/Big Class.jmp");
Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Color( :height ) ),
	Elements(
		Contour( X, Y, Legend( 4 ), Fill( 0 ) ),
		Points( X, Y, Color( 0 ), Legend( 5 ) )
	),
	Local Data Filter(
		Add Filter(
			columns( :age ),
			Where( :age == 13 ),
			Display( :age, Height( 102 ) )
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One big advantage of the built-in version (if using JMP 15 of course...) is that all of the Graph Builder grouping computations are already taken care of.&amp;nbsp; So, if you use another column in the overlay role, you will get a convex hull for each group:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Graph Builder.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19996i7B79DE437D422714/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Graph Builder.png" alt="Graph Builder.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 13:40:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231614#M45930</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2019-10-31T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update Graphics Script with Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231632#M45939</link>
      <description>&lt;P&gt;Incredible. I cannot wait for my organization to upgrade!&lt;/P&gt;&lt;P&gt;In the meantime, I'll try to put something together for v14 as you described.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:45:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-Graphics-Script-with-Local-Data-Filter/m-p/231632#M45939</guid>
      <dc:creator>burakbagdatli</dc:creator>
      <dc:date>2019-10-31T15:45:33Z</dc:date>
    </item>
  </channel>
</rss>

