<?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: Can JMP graphics have this effect? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810220#M99216</link>
    <description>&lt;P&gt;via (&lt;EM&gt;JSL-free&lt;/EM&gt;) Graph Builder: not yet.&amp;nbsp;Maybe in a future release?&lt;/P&gt;&lt;P&gt;More and more competitor programs provide this type of annotations, so I guess it will also be implemented in JMP.&lt;/P&gt;&lt;P&gt;You can go to&amp;nbsp;&lt;LI-MESSAGE title="New type of cross hair for line and smoother type charts" uid="736321" url="https://community.jmp.com/t5/JMP-Wish-List/New-type-of-cross-hair-for-line-and-smoother-type-charts/m-p/736321#U736321" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and support&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16391"&gt;@shampton82&lt;/a&gt;&amp;nbsp;'s&amp;nbsp; wish.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Nov 2024 12:31:42 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-11-10T12:31:42Z</dc:date>
    <item>
      <title>Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810218#M99214</link>
      <description>&lt;P&gt;This is the HTML effect.&lt;BR /&gt;Can JMP graphlet achieve this effect?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.gif" style="width: 741px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70007iB7C23A5F22D334E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.gif" alt="test.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 03:12:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810218#M99214</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-11-10T03:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810219#M99215</link>
      <description>&lt;P&gt;via JSL, yes.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 09:58:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810219#M99215</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-10T09:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810220#M99216</link>
      <description>&lt;P&gt;via (&lt;EM&gt;JSL-free&lt;/EM&gt;) Graph Builder: not yet.&amp;nbsp;Maybe in a future release?&lt;/P&gt;&lt;P&gt;More and more competitor programs provide this type of annotations, so I guess it will also be implemented in JMP.&lt;/P&gt;&lt;P&gt;You can go to&amp;nbsp;&lt;LI-MESSAGE title="New type of cross hair for line and smoother type charts" uid="736321" url="https://community.jmp.com/t5/JMP-Wish-List/New-type-of-cross-hair-for-line-and-smoother-type-charts/m-p/736321#U736321" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and support&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16391"&gt;@shampton82&lt;/a&gt;&amp;nbsp;'s&amp;nbsp; wish.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 12:31:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810220#M99216</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-10T12:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810221#M99217</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
fb = Report( gb )[FrameBox( 1 )];
xx = yy = 0;
fb &amp;lt;&amp;lt; addgraphicsscript(//
	Mousetrap(
		xx = x;
		yy = y;
	);
	V Line( xx );
	// at this point you can highlight all the values near xx
	For( irow = 1, irow &amp;lt;= N Rows( dt ), irow += 1,
		If( Abs( dt:height[irow] - xx ) &amp;lt; 0.5, // big class height step is 1, &amp;lt;.5 selects a single column of weights
			Marker( Marker State( 4 ), {dt:height[irow], dt:weight[irow]} )
		)
	);
	xwidth = X Range();
	xmidpoint = X Origin() + xwidth / 2;
	If( xx &amp;lt; xmidpoint,
		Text( {xx + xwidth / 100, yy}, "height " || Char( Round( xx ) ) || "\!nmore" )//
	,
		Text( right justified, {xx - xwidth / 100, yy}, "height " || Char( Round( xx ) ) || "\!nmore" )
	);
	//	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;edit: Line 18 now says xx rather than x. Must have been something left over in my namespace. Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17251"&gt;@lala&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6364501869112w552h540r492" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364501869112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364501869112w552h540r492');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6364501869112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 13:16:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810221#M99217</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-11-10T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810223#M99218</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-10_19-28-58.png" style="width: 613px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70008i2CB8320EC892134E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-11-10_19-28-58.png" alt="2024-11-10_19-28-58.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 11:30:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810223#M99218</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-11-10T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810229#M99221</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;, nice, very smooth! : )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Almost too smooth: I hope this example will not stop the developers from implementing a non-JSL approach.&lt;BR /&gt;some arguments for a native support via Graph Builder:&lt;/P&gt;&lt;P&gt;- make native Graph Builder more powerful&lt;/P&gt;&lt;P&gt;- make the non-JSL users happy as well&lt;/P&gt;&lt;P&gt;- show the automatic fancy annotations even without mouse clicks&lt;BR /&gt;&amp;nbsp; -&amp;gt; &amp;nbsp;allow the users to use the mouse as usual to select data points&lt;BR /&gt;&amp;nbsp; &amp;nbsp;(with the current "JSL" approach, one might add some toggle buttons to choose the correct mode - like it's implemented for&amp;nbsp;&lt;LI-MESSAGE title="Venn Diagram" uid="22390" url="https://community.jmp.com/t5/JMP-Add-Ins/Venn-Diagram/m-p/22390#U22390" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took me a while to understand the error message!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
// x=y=60;
fb = Report( gb )[FrameBox( 1 )];
fb &amp;lt;&amp;lt; addgraphicsscript(//
	If(Not( Is Empty( x ) ), // if the mouse did not yet enter the graph -&amp;gt; do nothing.
		Mousetrap("nothing to do");
		V Line(x);
	// at this point you can highlight all the values near xx
		For( irow = 1, irow &amp;lt;= N Rows( dt ), irow += 1,
			If( Abs( dt:height[irow] - x ) &amp;lt; 0.5, // big class height step is 1, &amp;lt;.5 selects a single column of weights
				Marker( Marker State( 4 ), {dt:height[irow], dt:weight[irow]} )
			)
		);
		xwidth = X Range();
		xmidpoint = X Origin() + xwidth / 2;
		If( x &amp;lt; xmidpoint,
			Text( {x + xwidth / 100, y}, "height " || Char( Round( x ) ) || "\!nmore" )//
		,

			Text(
				right justified,
				{x - xwidth / 100, y},
				"height " || Char( Round( x ) ) || "\!nmore"
			)
		);
	)
	//	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 13:36:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810229#M99221</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-10T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810230#M99222</link>
      <description>&lt;P&gt;Looks like adding a hover drill script.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For(iFrame=1,iFrame&amp;lt;=N Items(framelist),iFrame+=1,frame=framelist[iFrame]; Eval(Eval Expr(frame&amp;lt;&amp;lt;Addgraphicsscript(Mousetrap({},
……//？？
)))););&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 13:38:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810230#M99222</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-11-10T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810231#M99223</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;MouseTrap is a strange thing in JSL. It is a function that does nothing when executed and doesn't matter if it is executed or not or (mostly) where it is positioned in the script. When a mouse move happens on the graph, the coordinates are sent to the script in x,y which need to be copied into globals as shown.&lt;/P&gt;
&lt;P&gt;Handle, and the various Drag variants, have a position associated with them and will only activate if close enough. The order does matter, a little, because the first one encountered in the script that is close enough (a few pixels) will get the update.&lt;/P&gt;
&lt;P&gt;I can't fully explain why it works with your change. X really shouldn't exist... it appears it escapes the mousetrap!&lt;/P&gt;
&lt;P&gt;I repaired the script in my first post.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 13:36:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810231#M99223</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-11-10T13:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810234#M99224</link>
      <description>&lt;P&gt;I SEE&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Hold down the left button to move automatically change.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank Craige!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 13:42:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810234#M99224</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-11-10T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810236#M99225</link>
      <description>&lt;P&gt;I just found this information in the Scripting Index:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="hogi_0-1731245964407.png" style="width: 739px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70012iE9957F76C4570E62/image-dimensions/739x109?v=v2" width="739" height="109" role="button" title="hogi_0-1731245964407.png" alt="hogi_0-1731245964407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the coordinates x and y are stored as &lt;STRONG&gt;global variables&amp;nbsp;&lt;/STRONG&gt;for the execution of the script.&lt;/P&gt;&lt;P&gt;And any pre-existing global variables x &amp;amp; y are restored after executing the script.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is where the story could end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncommenting the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// x=y=60;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;lets the graph start with a line at x = 60.&amp;nbsp;&lt;SPAN&gt;-&amp;gt; the script uses the local variable from the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Here&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt; namespace.&lt;BR /&gt;What surprised me:&lt;BR /&gt;&lt;/SPAN&gt;When I try to drag the line to another location, it works!&lt;BR /&gt;&lt;BR /&gt;Why is this surprising:&lt;BR /&gt;x inside the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace stays at 60. And the script will prefer the variables from the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace over the variables from the global namespace. [Edit: for the global variables the original values should be "restored" at this point of time: after executing MouseTrap].&amp;nbsp;So, why does the script work ?!&lt;/P&gt;&lt;P&gt;Seems that inside the script there are local variable x &amp;amp; y which are preferentially used - instead of the variables from the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace.&amp;nbsp;It this interpretation correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, under the line, it's very kind that JMP does the extra effort with the global variables. This way even functions which live outside of the context of the Graphics Script (myfunctions:xy ) can access the variables :)&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe interesting to check:&lt;BR /&gt;Graphics scripts of one FrameBox - do they share a common namespace or does every graphics script use it's own ...&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 14:22:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810236#M99225</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-10T14:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810237#M99226</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Ok, &lt;STRONG&gt;ONE shared Namespace per Framebox&amp;nbsp;&lt;/STRONG&gt;- separate from the &lt;FONT face="courier new,courier"&gt;global&lt;/FONT&gt; Namespace&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;- and separate from the Namespace of the other FrameBoxes.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: wow, quite wrong interpretation of the finding.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;::x= 5;
(Report( gb )&amp;lt;&amp;lt; xpath("//FrameBox")) &amp;lt;&amp;lt; add graphics script(//
	If(Not( Is Empty( x ) ), // if the mouse did not yet enter the graph -&amp;gt; do nothing.
		Caption("global x is "|| Char(::X));
		V Line(x+3);
	)
	//	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6364509574112w810h460r381" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364509574112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364509574112w810h460r381');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6364509574112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;Another finding - at the end of the video:&lt;BR /&gt;rescaling the window triggers a reset of the plot with the original values from the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I access this namespace?&lt;/P&gt;
&lt;P&gt;Both:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report(gb)[FrameBox(1)]  &amp;lt;&amp;lt; get namespace() ;
(Report(gb)[FrameBox(1)] &amp;lt;&amp;lt; find seg(TopSeg (1))) &amp;lt;&amp;lt; get namespace();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produce a new namespace.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Dec 2025 12:53:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810237#M99226</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-24T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810238#M99227</link>
      <description>&lt;P&gt;you can use function arguments instead of x,y&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example",
	trapx = 20;
	trapy = 50;
	handx = 70;
	handy = 80;
	trapcolor="blue";
	handcolor="blue";
	Graph Box(
		Frame Size( 200, 200 ),
		handle( handx, handy, // any handle(s) must come before Mousetrap
			Function( {a, b}, handx=a; handy=b;
				Write( Eval Insert( "\!nhand drag ^a^ ^b^" ) );
				handcolor="magenta"; )
		, // the mouse-up handler 
			Function( {a, b}, handx=a; handy=b;
				Write( Eval Insert( "\!nhand release ^a^ ^b^" ) );
				handcolor="cyan"; ) 			
		);
		Mousetrap( // should not be more than one Mousetrap, the first one captures all clicks
			Function( {a, b}, trapx=a; trapy=b;
				Write( Eval Insert( "\!ntrap drag ^a^ ^b^" ) );
				trapcolor="red"; )
		, // the mouse-up handler 
			Function( {a, b}, trapx=a; trapy=b;
				Write( Eval Insert( "\!ntrap release ^a^ ^b^" ) );
				trapcolor="green"; ) 
		);
		// the drawing occurs outside of the mousetrap or handle
		pencolor(trapcolor);
		pensize(3);
		Circle( {0, 0}, Sqrt( trapx * trapx + trapy * trapy ) );
		pencolor(handcolor);
		pensize(3);
		Circle( {0, 0}, Sqrt( handx * handx + handy * handy ) );
		
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need one or more handles, they must appear before the mousetrap because a click will be consumed by the mousetrap if no previous handle took it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 15:47:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810238#M99227</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-11-10T15:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810239#M99228</link>
      <description>&lt;P&gt;-&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 18:24:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810239#M99228</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-10T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810244#M99231</link>
      <description>&lt;P&gt;Interesting. Why is the handle not tied to the x/y coordinate system?&lt;BR /&gt;It still works after resizing the plot, but there is a significant offset:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6364511626112w554h452r557" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364511626112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364511626112w554h452r557');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6364511626112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 17:11:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810244#M99231</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-10T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810250#M99236</link>
      <description>&lt;P&gt;The handle is. The circle is not. I *think* the perfectly round circle on the non-square grid has its radius defined in Y axis coordinates.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 23:22:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810250#M99236</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-11-10T23:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810255#M99240</link>
      <description>&lt;P&gt;Ouch, sure&amp;nbsp; -&amp;nbsp;&lt;LI-MESSAGE title="How Do You Draw a Circle?" uid="466661" url="https://community.jmp.com/t5/Uncharted/How-Do-You-Draw-a-Circle/m-p/466661#U466661" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 05:35:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810255#M99240</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-11T05:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810366#M99290</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I access this namespace?&lt;/P&gt;&lt;P&gt;Both:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report(gb)[FrameBox(1)]  &amp;lt;&amp;lt; get namespace() ;
(Report(gb)[FrameBox(1)] &amp;lt;&amp;lt; find seg(TopSeg (1))) &amp;lt;&amp;lt; get namespace();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;produce a new namespace.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I asked JMP support: TS-&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;00173810&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;unfortunately:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;You&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;cannot&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;access&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;graphics&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;script&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;namespace&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;externally&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 22:18:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810366#M99290</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-11T22:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/813471#M99483</link>
      <description>&lt;P&gt;Slightly changed the script to display weight values instead of more:&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/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
fb = Report( gb )[FrameBox( 1 )];
xx = yy = 0;
valuesMatrix = :height &amp;lt;&amp;lt; Get Values; //***new*** Get column values for height
fb &amp;lt;&amp;lt; addgraphicsscript(//
	Mousetrap(
		xx = x;
		yy = y;
	);
	V Line( xx );
	// at this point you can highlight all the values near xx
	For( irow = 1, irow &amp;lt;= N Rows( dt ), irow += 1,
		If( Abs( dt:height[irow] - xx ) &amp;lt; 0.5, // big class height step is 1, &amp;lt;.5 selects a single column of weights
			Marker( Marker State( 4 ), {dt:height[irow], dt:weight[irow]} )
		)
	);
	
	valuesRows = char(:weight[loc(valuesMatrix,round(xx))]); //***new*** write to char weight values for all rows of height at position round(xx)
	xwidth = X Range();
	xmidpoint = X Origin() + xwidth / 2;
	If( xx &amp;lt; xmidpoint,
		Text( {xx + xwidth / 100, yy}, "height " || Char( Round( xx ) ) || "\!nweight " || valuesRows  )////***new*** exchanged "more" with weigth and list of weight values for that location of height
	,
		Text( right justified, {xx - xwidth / 100, yy}, "height " || Char( Round( xx ) ) || "\!nweight " || valuesRows )
	);
	//	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you may even could add sorting the values ascending/descending.&amp;nbsp;&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6364781232112w542h540r980" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364781232112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364781232112w542h540r980');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6364781232112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:45:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/813471#M99483</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2024-11-16T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP graphics have this effect?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/921213#M107999</link>
      <description>&lt;P&gt;Hm, I think many of my conclusions were wrong.&lt;BR /&gt;&lt;BR /&gt;Another try:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1766581601794.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89600i924A216CF049C1EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="hogi_3-1766581601794.png" alt="hogi_3-1766581601794.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Maybe the&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1766581578282.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89599i6842FCEC0C3F9702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1766581578282.png" alt="hogi_2-1766581578282.png" /&gt;&lt;/span&gt;&amp;nbsp;does not mean&amp;nbsp; "after running the [drag] script" but rather "with the mouseUp".&lt;/LI&gt;
&lt;LI&gt;And very important. If there is no need to update a &lt;FONT face="courier new,courier"&gt;Framebox&lt;/FONT&gt;, it doesn't get updated.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;when the mouse is moved, new coordinates are saved to x &amp;amp; y&lt;BR /&gt;(&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1766582607718.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89601iDF60AF935E08ADF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1766582607718.png" alt="hogi_4-1766582607718.png" /&gt;&lt;/span&gt;? No - in the Here namespace because we used&amp;nbsp;&lt;STRONG&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Names default to HERE (1)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;)&lt;/LI&gt;
&lt;LI&gt;... and the values can be used within the Here namespace - even outside of the &lt;FONT face="courier new,courier"&gt;Mousetrap()&lt;/FONT&gt;. This puzzled&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;, and I put another foot into this trap:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Making-a-drag-amp-drop-script/m-p/921160/highlight/true#M107993" target="_blank"&gt;Making-a-drag-amp-drop-script&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;After the update of the variables, JMP gets a trigger to redraws &lt;STRONG&gt;THE&amp;nbsp;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;Framebox&lt;/FONT&gt; with the graphics script &lt;STRONG&gt;and the current x and y values&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Other Frameboxes&lt;/STRONG&gt; don't get updated:&lt;BR /&gt;If we move the mouse in the left frame box, the center one is not updated – and vice versa.&lt;BR /&gt;This creates the illusion of two separate namespaces. So it's no wonder that users can't access the namespace of a frame box — there isn't one. It's just the shared &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace in combination with local Framebox updates.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;After releasing the mouse button, x and y&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1766581375816.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89598iB7A20D8802A61CBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1766581375816.png" alt="hogi_1-1766581375816.png" /&gt;&lt;/span&gt;.&lt;BR /&gt;However, no update of the frame boxes is triggered. Therefore, the user does not notice this reset of the variables in the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt;' namespace.&lt;/LI&gt;
&lt;LI&gt;Just when the graph gets updated the next time (e.g. resized, or some data points selected), the graphics script is executed again and reveals that the values were reset (some time ago).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6386911710112w1198h540r868" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6386911710112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6386911710112w1198h540r868');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6386911710112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Dec 2025 13:28:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/921213#M107999</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-24T13:28:07Z</dc:date>
    </item>
  </channel>
</rss>

