<?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 How to combine multiple plots in 1 tab using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-combine-multiple-plots-in-1-tab-using-JSL/m-p/718151#M90019</link>
    <description>&lt;P&gt;Hi, I have two different plots and I would like to combine them in one tab on my journal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=open("$SAMPLE_DATA/big class.jmp");

// Plot 1
biv = dt &amp;lt;&amp;lt; Bivariate( invisible, Y( :height ), X( :weight ), By( :sex ) );

// Create the window, with the first tab
nw=New Window("Tabs", text box("here are the tabs"), tb = Tab Box((report(biv[1])[outlinebox(1)])&amp;lt;&amp;lt;get title ,report(biv[1])));

//Plot 2
biv2 = bivariate( x( :height ), y( :weight ), invisible );

tb &amp;lt;&amp;lt; Append( "Plot 2", biv2 &amp;lt;&amp;lt; Report); //what I currently do&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how can I combine these two different plot in 1 tab? I am using JMP 15&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 01:13:24 GMT</pubDate>
    <dc:creator>UserID16644</dc:creator>
    <dc:date>2024-01-23T01:13:24Z</dc:date>
    <item>
      <title>How to combine multiple plots in 1 tab using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-combine-multiple-plots-in-1-tab-using-JSL/m-p/718151#M90019</link>
      <description>&lt;P&gt;Hi, I have two different plots and I would like to combine them in one tab on my journal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=open("$SAMPLE_DATA/big class.jmp");

// Plot 1
biv = dt &amp;lt;&amp;lt; Bivariate( invisible, Y( :height ), X( :weight ), By( :sex ) );

// Create the window, with the first tab
nw=New Window("Tabs", text box("here are the tabs"), tb = Tab Box((report(biv[1])[outlinebox(1)])&amp;lt;&amp;lt;get title ,report(biv[1])));

//Plot 2
biv2 = bivariate( x( :height ), y( :weight ), invisible );

tb &amp;lt;&amp;lt; Append( "Plot 2", biv2 &amp;lt;&amp;lt; Report); //what I currently do&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how can I combine these two different plot in 1 tab? I am using JMP 15&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 01:13:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-combine-multiple-plots-in-1-tab-using-JSL/m-p/718151#M90019</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2024-01-23T01:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple plots in 1 tab using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-combine-multiple-plots-in-1-tab-using-JSL/m-p/718155#M90022</link>
      <description>&lt;P&gt;Try the below JSL, it is one way to do what you want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1705980617413.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60480i81AE4F17B5FF9E1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1705980617413.png" alt="txnelson_0-1705980617413.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Plot 1
biv = dt &amp;lt;&amp;lt; Bivariate( invisible, Y( :height ), X( :weight ), By( :sex ) );
dis = Distribution( Continuous Distribution( invisible, Column( :height ) ) );

// Create the window, with the first tab
nw = New Window( "Tabs",
	Text Box( "here are the tabs" ),
	tb = Tab Box( (Report( biv[1] )[Outline Box( 1 )]) &amp;lt;&amp;lt; get title, Report( biv[1] ) )
);

//Plot 2
biv2 = bivariate( x( :height ), y( :weight ), invisible );

tb &amp;lt;&amp;lt; Append( "Plot 2", hlb = H List Box( biv2 &amp;lt;&amp;lt; Report ) ); // Add an H List Box to the tab

hlb &amp;lt;&amp;lt; append( dis &amp;lt;&amp;lt; report );  // Append additional items to the H List Box&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jan 2024 03:30:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-combine-multiple-plots-in-1-tab-using-JSL/m-p/718155#M90022</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-23T03:30:31Z</dc:date>
    </item>
  </channel>
</rss>

