<?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: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251781#M49444</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Get Local Context&lt;/EM&gt; was introduced in 15.1. &lt;EM&gt;Copy&lt;/EM&gt; works, you can get the full text and parse it, though I realize it is not ideal (which is why I added &lt;EM&gt;Get Local Context&lt;/EM&gt; later).&lt;/P&gt;
&lt;P&gt;I saw the issue with the annotation not displaying as well. Fortunately it works as expected in 15.1.&lt;/P&gt;
&lt;P&gt;See, I just gave you two reasons to upgrade your JMP installation! :)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 15:13:44 GMT</pubDate>
    <dc:creator>nascif_jmp</dc:creator>
    <dc:date>2020-03-11T15:13:44Z</dc:date>
    <item>
      <title>Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251706#M49424</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GraphBuilder BoxPlot segments in JMP 14 and 15 appear to have a built-in hover label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interactively, the hover label can be pinned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Embedded below is a picture of a pinned hover label and the associated saved script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am interested in accessing the BoxPlotSeg fences. I have not found JSL syntax to access the fence values. From the saved script, of an interactive session, it seems apparent that these fence values are inherent with the GraphBuilder. I know how to find/compute the fence values for an Outlier BoxPlot. However, if JMP has exposed the values via GraphBuilder or another method, I would like to know how to access the fence values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="image.png" style="width: 614px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22286i345F44AF3D19C6A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$Sample_Data/Analgesics.jmp" ) &amp;lt;&amp;lt;
Graph Builder(
	Size( 528, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :drug ), Y( :pain ) ),
	Elements( Points( X, Y, Legend( 5 ) ), Box Plot( X, Y, Legend( 6 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			Add Pin Annotation(
				Seg( Box Plot Seg( 2 ) ),
				Index( {1, 1} ),
				Index Row( {1, 1} ),
				UniqueID( 568563361 ),
				FoundPt( {321, 356} ),
				Origin( {1.14256198347107, 3.97321428571429} )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:26:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251706#M49424</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2023-06-09T23:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251776#M49441</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it is possible. Some of these annotation messages were added very recently to help with our testing frameworks, I apologize if they have not been properly documented. I will make sure to look into that.&lt;/P&gt;
&lt;P&gt;Please see the script below. It shows how to get the annotation (which in this case is a pinned hover label) content as both a single text paragraph (using &lt;EM&gt;Copy&lt;/EM&gt;) and as data in the form of an associative array (using&amp;nbsp;&lt;EM&gt;Get Local Context).&lt;/EM&gt;&amp;nbsp;As you can see, the hover label context data includes more than just the visible hover label entries and is heavily used by Graphlet Presets. I believe power users will be able to take advantage of them to create some really interesting, interactive JMP applications. For more information on what type of data is available, check:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/work-with-the-hover-label-execution-context.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/work-with-the-hover-label-execution-context.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$Sample_Data/Analgesics.jmp" );
gb = dt  &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :drug ), Y( :pain ) ),
	Elements( Points( X, Y, Legend( 5 ) ), Box Plot( X, Y, Legend( 6 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			Add Pin Annotation(
				Seg( Box Plot Seg( 2 ) ),
				Index( {1, 1} ),
				Index Row( {1, 1} ),
				UniqueID( 568563361 ),
				FoundPt( {321, 356} ),
				Origin( {1.14256198347107, 3.97321428571429} )
			)
		)
	)
);
frame = (gb &amp;lt;&amp;lt; Report)[FrameBox(1)];
gpin = frame &amp;lt;&amp;lt; Get Annotation();
pinText = gpin &amp;lt;&amp;lt; Copy();
Show(pinText);
hlec = gpin &amp;lt;&amp;lt; Get Local Context();
Show(hlec);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log results:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;pinText = "
Maximum, excluding outliers: 16.636
75%: 12.93
50%: 9.418
25%: 7.84
Minimum, excluding outliers: 3.838
drug: B
N: 7";
hlec = ["_25%" =&amp;gt; 7.84, &lt;BR /&gt;"_50%" =&amp;gt; 9.418, &lt;BR /&gt;"_75%" =&amp;gt; 12.93, &lt;BR /&gt;"_dataTable" =&amp;gt; Data Table( "Analgesics" ), &lt;BR /&gt;"_displaySegName" =&amp;gt; "BoxPlotSeg", &lt;BR /&gt;"_drillDepth" =&amp;gt; 1, &lt;BR /&gt;"_drug" =&amp;gt; "B", &lt;BR /&gt;"_filters" =&amp;gt; {:pain, :drug}, &lt;BR /&gt;"_firstRow" =&amp;gt; -1, &lt;BR /&gt;"_groupings" =&amp;gt; {:pain, :drug}, &lt;BR /&gt;"_Maximum, excluding outliers" =&amp;gt; 16.636, &lt;BR /&gt;"_measurements" =&amp;gt; {}, &lt;BR /&gt;"_Minimum, excluding outliers" =&amp;gt; 3.838, &lt;BR /&gt;"_mode" =&amp;gt; "Test", &lt;BR /&gt;"_N" =&amp;gt; 7, &lt;BR /&gt;"_pain" =&amp;gt; {7.84, 12.93}, &lt;BR /&gt;"_summaryStatistic" =&amp;gt; "", &lt;BR /&gt;"_underlyingRows" =&amp;gt; 7, &lt;BR /&gt;"_where" =&amp;gt; ":pain &amp;gt;= 7.84 &amp;amp; :pain &amp;lt; 12.93 &amp;amp; :drug == \!"B\!"", &lt;BR /&gt;"_whereExpr" =&amp;gt; Expr(
    :pain &amp;gt;= 7.84 &amp;amp; :pain &amp;lt; 12.93 &amp;amp; :drug == "B"
)];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 14:47:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251776#M49441</guid>
      <dc:creator>nascif_jmp</dc:creator>
      <dc:date>2020-03-11T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251779#M49443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3734"&gt;@nascif_jmp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Win 10 Enterprise, 64-bit, JMP Pro 15.0.0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I thought this was a really great question, and I tried doing some other things, but it didn't work out. I had tried running the script, doing a Save Script to Scripting Window, and then searching for the relevant information within the Scripting Window window. That was proving to be quite difficult, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway, thanks for your reply. I tried to run the script that you gave, and there are two strange things that happen:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When I try to just run the script as is, the "Send To Report(Dispatch(...))" section of code doesn't actually append the Pin Annotation to the graph. I have to go back in manually and do it.&lt;/LI&gt;&lt;LI&gt;After performing the above, when I try to run the line hlec = gpin &amp;lt;&amp;lt; Get Local Context(); JMP gives this error in the log:&amp;nbsp;Object 'gpin' does not recognize the message 'Get Local Context'; perhaps you mean one of these: &amp;lt;&amp;lt;Replace Text... &amp;lt;&amp;lt;Add Text... &amp;lt;&amp;lt;Text Color &amp;lt;&amp;lt;Revert Text &amp;lt;&amp;lt;Tag Line &amp;lt;&amp;lt;Launch graphlet &amp;lt;&amp;lt;Get Links. And returns null for hlec.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; Any ideas why either of those are not working correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;My version of JMP also doesn't recognize the Get Local Context command when I search for it in the Scripting Index, perhaps that's why #2 won't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:05:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251779#M49443</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2020-03-11T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251781#M49444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Get Local Context&lt;/EM&gt; was introduced in 15.1. &lt;EM&gt;Copy&lt;/EM&gt; works, you can get the full text and parse it, though I realize it is not ideal (which is why I added &lt;EM&gt;Get Local Context&lt;/EM&gt; later).&lt;/P&gt;
&lt;P&gt;I saw the issue with the annotation not displaying as well. Fortunately it works as expected in 15.1.&lt;/P&gt;
&lt;P&gt;See, I just gave you two reasons to upgrade your JMP installation! :)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:13:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251781#M49444</guid>
      <dc:creator>nascif_jmp</dc:creator>
      <dc:date>2020-03-11T15:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251782#M49445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3734"&gt;@nascif_jmp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yeah, I need to upgrade to 15.1 for other reasons as well: current version won't recognize all files in directories on shared network drives. Sometimes it sees 1 or 2 or 6 files out of the hundreds that are actually there. Apparently, it's a known issue with OneDrive as well. I've been told 15.1 fixes that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've been waiting some time for our IT to roll it out, but with hundreds of users across the world using JMP, I imagine it might be taking them a bit of time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:19:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251782#M49445</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2020-03-11T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251785#M49446</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;said '&lt;SPAN&gt;I am interested in accessing the BoxPlotSeg fences'. I didn't know about 'GetLocalContext', but it seems to rely on annotations actually being present. But perhaps 'GetMoments' and 'GetQuantiles', both of which return a matrix, might help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:28:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251785#M49446</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-03-11T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JSL Message to Access GraphBuilder BoxPlotSeg Labels</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251857#M49458</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt; is correct, my goal is to access the fences without the pinned message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, &amp;lt;&amp;lt; Get Quantiles will help me compute the fence values, the max and min data values within the range of q50 +/- 1.5*(q75-q25). So it is not difficult to compute. I just wondered of there was a method to access them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;, I have not upgraded to 15.1 yet, and I saw the intermittent behavior of the dispatch working or being ignored. It would work as a script then it wouldn't. I would open a new session and it would work.&amp;nbsp; I'll have to upgrade to 15.1 to check if the same behavior persists. My guess is the ID number which seems strange is the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3734"&gt;@nascif_jmp&lt;/a&gt;, thank you for the &amp;lt;&amp;lt;Get Local Context response. While it does not exactly match my request, it was informative and appears to be a useful function. I will mark your and Ian's response as a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case somone is following this post, I attached a script with one method to get the boxplot fences with JSL (multiple methods to get quantiles, etc.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = Open("$Sample_Data/Analgesics.jmp");

boxNodes = dt &amp;lt;&amp;lt; Summary(
	Group( :drug ),
	Quantiles( 25, :pain ),
	Median( :pain ),
	Quantiles( 75, :pain ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "stat" )
);

bmin = boxNodes &amp;lt;&amp;lt; New Column("Lower Fence", numeric, continuous);
bmax = boxNodes &amp;lt;&amp;lt; New Column("Upper Fence", numeric, continuous);
bq25 = column(boxNodes, "Quantiles25");
bq75 = column(boxNodes, "Quantiles75");
bq50 = column(boxNodes, "Median");
bidx = Column(boxNodes, "drug");

For(i=1, i&amp;lt;=nrow(boxNodes), i++,   
   ll = bq50[i] - 1.5*(bq75[i] - bq25[i]);  	
   ul = bq50[i] + 1.5*(bq75[i] - bq25[i]);  	
   idx = dt &amp;lt;&amp;lt; get rows where( :drug == bidx[i] &amp;amp;   ll &amp;lt;= :pain &amp;lt;= ul );
   bmin[i] = min(dt:pain[idx]); 
   bmax[i] = max(dt:pain[idx]); 
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It produces the table shown below. Note&amp;nbsp; data table Analgesics, column "pain" has a display format of 2 decimals; the fence values are the tables stored values.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 753px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22299iFFA33E433DE1D5EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 19:10:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-JSL-Message-to-Access-GraphBuilder-BoxPlotSeg-Labels/m-p/251857#M49458</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-03-11T19:10:02Z</dc:date>
    </item>
  </channel>
</rss>

