<?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: Organize journal in a grid while copying open charts to journal within a loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/424319#M67345</link>
    <description>&lt;P&gt;I believe a better solution for you is to take my script and add&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/92"&gt;@pauldeen&lt;/a&gt;&amp;nbsp;suggestion.&amp;nbsp; It will give you the MxN matrix without having to do the hb1,hb2 coding&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "My Report" , &amp;lt;&amp;lt;journal,
	hlb = Lineup Box( NCol( 5 ))
);
For( i = istart, i &amp;lt;= iend, i++,
	If( Contains(postWindowList[i], "Distribution" ),
		hlb &amp;lt;&amp;lt; Append(Window (postWindowList [i])[outlinebox(2)]),
		hlb &amp;lt;&amp;lt; Append(Window (postWindowList [i])[outlinebox(1)]);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you replace the 5 in the NCol() function with the number of columns you want in your output, it will automatically fill in as many rows as necessary to present all of your output.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 13:15:03 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-10-07T13:15:03Z</dc:date>
    <item>
      <title>Organize journal in a grid while copying open charts to journal within a loop</title>
      <link>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/423493#M67253</link>
      <description>&lt;P&gt;Currently my code snippet below copies open charts (distributions and heatmaps) into a journal depending on the occurrence of specific text (e.g. &lt;EM&gt;"Distribution"&lt;/EM&gt;) in window name list (&lt;EM&gt;postWindowList&lt;/EM&gt;) of the open charts.&lt;/P&gt;&lt;P&gt;However, the journal gets the chart one below the other in one column. I would like them the charts to be in a &lt;EM&gt;MXN&lt;/EM&gt; grid. How to achieve this from within the loop?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;istart =  LengthOfpreWindowList + 2;  //e.g. istart = 10
iend = LengthOfpostWindowList;   //e.g. iend = 24

nw = New Window( "My Report" , &amp;lt;&amp;lt;journal);
For( i = istart, i &amp;lt;= iend, i++,
	If( Contains(postWindowList[i], "Distribution" ),
		Window (postWindowList [i])[outlinebox(2)]&amp;lt;&amp;lt; journal,
		Window (postWindowList [i])[outlinebox(1)]&amp;lt;&amp;lt; journal;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I am on JMP 13.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:18:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/423493#M67253</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-11T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Organize journal in a grid while copying open charts to journal within a loop</title>
      <link>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/423515#M67256</link>
      <description>&lt;P&gt;I believe this will work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "My Report" , &amp;lt;&amp;lt;journal,
	hlb = H List Box()
);
For( i = istart, i &amp;lt;= iend, i++,
	If( Contains(postWindowList[i], "Distribution" ),
		hlb &amp;lt;&amp;lt; Append(Window (postWindowList [i])[outlinebox(2)]),
		hlb &amp;lt;&amp;lt; Append(Window (postWindowList [i])[outlinebox(1)]);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I strongly recommend that you take the time to read the Scripting Guide, found in the JMP Documentation Library, available under the Help pull down menu.!!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 23:07:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/423515#M67256</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-04T23:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Organize journal in a grid while copying open charts to journal within a loop</title>
      <link>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/423819#M67299</link>
      <description>&lt;P&gt;You should look at a lineup box where you can specify the N part of your M*N list. Then you can just append things to that box and eventually journal the box.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 09:22:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/423819#M67299</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2021-10-06T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Organize journal in a grid while copying open charts to journal within a loop</title>
      <link>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/424306#M67344</link>
      <description>&lt;P&gt;Thanks, your script changes what I getting by default (i.e. vertically aligned charts in one column) to horizontally aligned charts.&lt;/P&gt;&lt;P&gt;However, I was able to use &lt;EM&gt;hlb1, hlb2&lt;/EM&gt;, and so on (and assigning them appropriately within the for loop) to copy what I wanted in a MxN grid of the journal.&lt;/P&gt;&lt;P&gt;This will do nicely for what I am after at the moment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:42:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/424306#M67344</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-10-07T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Organize journal in a grid while copying open charts to journal within a loop</title>
      <link>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/424319#M67345</link>
      <description>&lt;P&gt;I believe a better solution for you is to take my script and add&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/92"&gt;@pauldeen&lt;/a&gt;&amp;nbsp;suggestion.&amp;nbsp; It will give you the MxN matrix without having to do the hb1,hb2 coding&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "My Report" , &amp;lt;&amp;lt;journal,
	hlb = Lineup Box( NCol( 5 ))
);
For( i = istart, i &amp;lt;= iend, i++,
	If( Contains(postWindowList[i], "Distribution" ),
		hlb &amp;lt;&amp;lt; Append(Window (postWindowList [i])[outlinebox(2)]),
		hlb &amp;lt;&amp;lt; Append(Window (postWindowList [i])[outlinebox(1)]);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you replace the 5 in the NCol() function with the number of columns you want in your output, it will automatically fill in as many rows as necessary to present all of your output.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 13:15:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Organize-journal-in-a-grid-while-copying-open-charts-to-journal/m-p/424319#M67345</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-07T13:15:03Z</dc:date>
    </item>
  </channel>
</rss>

