<?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: Local data filter and Custom Graph Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272591#M53014</link>
    <description>&lt;P&gt;Below is a piece of JSL that used a Data Filter, not a Local Data Filter to do what you want.&amp;nbsp; A Data filter Excludes and Hides the rows in the data table, which are easily picked up in the Add Graphics Script.&amp;nbsp; Using a Local Data Filter would require far more complexity.&amp;nbsp; See if this method may work for you&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
New Window( "Filtered Arrows",
	Lineup Box( N Col( 2 ),
		dt &amp;lt;&amp;lt; Data Filter(
			Location( {780, 189} ),
			Width( 197 ),
			Mode( Show( 1 ), Include( 1 ) ),
			Add Filter( columns( :Speed ), Display( :Speed, Size( 185, 20 ), Height( 50 ) ) )
		),
		dt &amp;lt;&amp;lt; Bivariate(
			Y( :Lat1 ),
			X( :Lon1 ),
			SendToReport(
				Dispatch(
					{},
					"Bivar Plot",
					FrameBox,
					{Frame Size( 501, 429 ), Add Graphics Script(
						2,
						Description( "Script" ),
						Pen Size( 2 );
						For Each Row(
							If( Excluded( Row State( Row() ) ) == 0,
								Arrow( {:lon1, :lat1}, {:lon2, :lat2} )
							)
						);
					), Grid Line Order( 3 ), Reference Line Order( 1 )}
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 14 Jun 2020 00:53:37 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-06-14T00:53:37Z</dc:date>
    <item>
      <title>Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272568#M53006</link>
      <description>&lt;P&gt;I am using the approach suggested by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/494"&gt;@XanGregg&lt;/a&gt;&amp;nbsp;in &lt;A href="https://community.jmp.com/t5/JMP-Sample-Data/Chicago-Wind-Data-and-Plot/tac-p/269870#M140" target="_self"&gt;this post&lt;/A&gt; to make vector plots in Graph Builder.&amp;nbsp;&lt;SPAN&gt;However, it seems the local data filter does not work on the arrows. It only filters the points but not the arrows. Do you have any suggestion on how to fix it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:02:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272568#M53006</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2023-06-11T11:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272574#M53008</link>
      <description>&lt;P&gt;You will need to modify the Add Graphics Script code to recognize the new filter and then bypass drawing of the arrows for those rows.&amp;nbsp; There are functions such as X Origin() and Y Origin(), X Range() and Y Range() that can be checked to see if the graph has changed, and then you can display the filtered arrows.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 15:18:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272574#M53008</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-13T15:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272587#M53011</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;. Could you please provide an example? I am not very well familiar with JSL. How can I make the&amp;nbsp;&lt;SPAN&gt;Graphics Script to recognize the local data filter and bypass drawing of the arrows for those rows?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 20:21:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272587#M53011</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-06-13T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272591#M53014</link>
      <description>&lt;P&gt;Below is a piece of JSL that used a Data Filter, not a Local Data Filter to do what you want.&amp;nbsp; A Data filter Excludes and Hides the rows in the data table, which are easily picked up in the Add Graphics Script.&amp;nbsp; Using a Local Data Filter would require far more complexity.&amp;nbsp; See if this method may work for you&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
New Window( "Filtered Arrows",
	Lineup Box( N Col( 2 ),
		dt &amp;lt;&amp;lt; Data Filter(
			Location( {780, 189} ),
			Width( 197 ),
			Mode( Show( 1 ), Include( 1 ) ),
			Add Filter( columns( :Speed ), Display( :Speed, Size( 185, 20 ), Height( 50 ) ) )
		),
		dt &amp;lt;&amp;lt; Bivariate(
			Y( :Lat1 ),
			X( :Lon1 ),
			SendToReport(
				Dispatch(
					{},
					"Bivar Plot",
					FrameBox,
					{Frame Size( 501, 429 ), Add Graphics Script(
						2,
						Description( "Script" ),
						Pen Size( 2 );
						For Each Row(
							If( Excluded( Row State( Row() ) ) == 0,
								Arrow( {:lon1, :lat1}, {:lon2, :lat2} )
							)
						);
					), Grid Line Order( 3 ), Reference Line Order( 1 )}
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Jun 2020 00:53:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272591#M53014</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-14T00:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272611#M53019</link>
      <description>&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 14:47:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272611#M53019</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-06-14T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272750#M53048</link>
      <description>&lt;P&gt;If you want to make this work with the Local Data Filter, see the Scripting Index examples for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;box&amp;lt;&amp;lt;Get Row States&lt;/P&gt;
&lt;P&gt;box&amp;lt;&amp;lt;Make Row State Handler&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are similar to methods that you can use on the DataTable object, but if the given box is subject to a filter, they will use the filter row states instead of the data table row states.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 17:21:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/272750#M53048</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2020-06-15T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Local data filter and Custom Graph Script</title>
      <link>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/273372#M53170</link>
      <description>&lt;P&gt;Great! thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 23:06:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Local-data-filter-and-Custom-Graph-Script/m-p/273372#M53170</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-06-17T23:06:37Z</dc:date>
    </item>
  </channel>
</rss>

