<?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 adding graphics to each framebox in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/254372#M49935</link>
    <description>&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm new to JSL and would so appreciate your help with a script i'm struggling with for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i wrote a script that produces multiple graphs in one scroll box.&lt;/P&gt;&lt;P&gt;The problem is that i have a different number of frameboxes for each graph and i can't get track of the exact number. it also changes when i change the filter bar param. therefore when i'm trying to add graphics like circle to a framebox that do not exist i receive the message "cannot find framebox..." on the embedded log.&lt;/P&gt;&lt;P&gt;i found a script online that looks like it solves my problem but my script goes into an infinite loop and the error message keeps showing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the script i was trying:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;haveFrameBox =1;
i=0;
while(haveFrameBox,
	try(
		i++; 
		report(gb)&amp;lt;&amp;lt;dispatch({}, "Graph builder",FrameBox(i),circle({0,0},150)) ;
		,
		haveFrameBox=0
		)		
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I'm also having troubles with applying "size to isometric" function on each framebox with a for loop, for each i&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;try(Report(gb)[FrameBox(i)] &amp;lt;&amp;lt; size to isometric)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but the output is just a big mess...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 13:44:01 GMT</pubDate>
    <dc:creator>ivan_i</dc:creator>
    <dc:date>2020-03-26T13:44:01Z</dc:date>
    <item>
      <title>adding graphics to each framebox</title>
      <link>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/254372#M49935</link>
      <description>&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm new to JSL and would so appreciate your help with a script i'm struggling with for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i wrote a script that produces multiple graphs in one scroll box.&lt;/P&gt;&lt;P&gt;The problem is that i have a different number of frameboxes for each graph and i can't get track of the exact number. it also changes when i change the filter bar param. therefore when i'm trying to add graphics like circle to a framebox that do not exist i receive the message "cannot find framebox..." on the embedded log.&lt;/P&gt;&lt;P&gt;i found a script online that looks like it solves my problem but my script goes into an infinite loop and the error message keeps showing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the script i was trying:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;haveFrameBox =1;
i=0;
while(haveFrameBox,
	try(
		i++; 
		report(gb)&amp;lt;&amp;lt;dispatch({}, "Graph builder",FrameBox(i),circle({0,0},150)) ;
		,
		haveFrameBox=0
		)		
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I'm also having troubles with applying "size to isometric" function on each framebox with a for loop, for each i&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;try(Report(gb)[FrameBox(i)] &amp;lt;&amp;lt; size to isometric)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but the output is just a big mess...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 13:44:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/254372#M49935</guid>
      <dc:creator>ivan_i</dc:creator>
      <dc:date>2020-03-26T13:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: adding graphics to each framebox</title>
      <link>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/254391#M49937</link>
      <description>&lt;P&gt;You need to take a look at the XPath() function.&amp;nbsp; It may do what you are looking for.&amp;nbsp; Here is a simple use of it to find the number of Frame Boxes in a display&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( x( :weight, :age ), y( :height ), by( :sex ) );
Show( N Items( (biv &amp;lt;&amp;lt; xpath( "//FrameBox" )) ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Take a look in the Scripting Index&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 15:03:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/254391#M49937</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-26T15:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: adding graphics to each framebox</title>
      <link>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/255592#M50186</link>
      <description>Thank you! it worked like magic :)&lt;/img&gt;</description>
      <pubDate>Thu, 02 Apr 2020 06:25:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/255592#M50186</guid>
      <dc:creator>ivan_i</dc:creator>
      <dc:date>2020-04-02T06:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: adding graphics to each framebox</title>
      <link>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/777832#M95945</link>
      <description>&lt;P&gt;an additional thank you&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 20:15:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-graphics-to-each-framebox/m-p/777832#M95945</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-07-31T20:15:24Z</dc:date>
    </item>
  </channel>
</rss>

