<?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 do I create two independent row legends in the same output tab? JSL JMP12 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-create-two-independent-row-legends-in-the-same-output/m-p/403085#M65381</link>
    <description>&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a report that has multiple plots in the same output tab. For plot 1 I want the row legend colors to be based on tool 1. For plot 2 I want the row legend colors to be based on tool 2. When I assign tool 2 to the row legend for plot 2 the colors in plot 2 still match the tool 1 colors established in plot 1. I have another column utilizing the alphanumeric row legend so this is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to assign different row states for each plot?&lt;/P&gt;&lt;P&gt;Below is some sample code similar to my script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Output01_DB = vlistbox(
DT1&amp;lt;&amp;lt;Bivariate (	Y( :y1, ),	X( :time ), 
	Automatic Recalc( 1 ),
	Local Data Filter(
	Location( {2438, 7} ),
	Mode( Select( 0 ), Show( 1 ), Include( 1 ) ),
		Add Filter(0)),
	Where( :z == "1" ),
	SendToReport(
		Dispatch(
			{},
			"2",
			ScaleBox,
			{Min( -4 ), Max( 4 ), Inc( 1 ), Minor Ticks( 1 ),
			Add Ref Line( 0, Dotted, {0, 0, 0}, "middle", 2 ),
			Add Ref Line( 3, Dotted, {255, 0, 0}, "upper", 2 ),
			Add Ref Line( -3, Dotted, {255, 0, 0}, "lower", 2 ),
			Add Ref Line( 2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( 1, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -1, Dotted, {204, 204, 204}, "", 2 )}
		),
		Dispatch( {}, "Bivar Plot", FrameBox,
			{Frame Size( 920, 490 ), Marker Size( 4 ), Row Legend(
				tool_1,
				Color( 1 ),
				Color Theme( "JMP Dark" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
));

Output02_DB = vlistbox(
DT1&amp;lt;&amp;lt;Bivariate (	Y( :y2, ),	X( :time ), 
	Automatic Recalc( 1 ),
	Local Data Filter(
	Location( {2438, 7} ),
	Mode( Select( 0 ), Show( 1 ), Include( 1 ) ),
		Add Filter(0)),
	Where( :z == "1" ),
	SendToReport(
		Dispatch(
			{},
			"2",
			ScaleBox,
			{Min( -4 ), Max( 4 ), Inc( 1 ), Minor Ticks( 1 ),
			Add Ref Line( 0, Dotted, {0, 0, 0}, "middle", 2 ),
			Add Ref Line( 3, Dotted, {255, 0, 0}, "upper", 2 ),
			Add Ref Line( -3, Dotted, {255, 0, 0}, "lower", 2 ),
			Add Ref Line( 2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( 1, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -1, Dotted, {204, 204, 204}, "", 2 )}
		),
		Dispatch( {}, "Bivar Plot", FrameBox,
			{Frame Size( 920, 490 ), Marker Size( 4 ), Row Legend(
				tool_2,
				Color( 1 ),
				Color Theme( "JMP Dark" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
));

indiv_report = vlistbox(Output01_DB, Output02_DB)

Z1 header &amp;lt;&amp;lt; append(indiv_report)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;#JSL&amp;nbsp; #JMP12Pro&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:53:03 GMT</pubDate>
    <dc:creator>jk137</dc:creator>
    <dc:date>2023-06-09T19:53:03Z</dc:date>
    <item>
      <title>How do I create two independent row legends in the same output tab? JSL JMP12</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-create-two-independent-row-legends-in-the-same-output/m-p/403085#M65381</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a report that has multiple plots in the same output tab. For plot 1 I want the row legend colors to be based on tool 1. For plot 2 I want the row legend colors to be based on tool 2. When I assign tool 2 to the row legend for plot 2 the colors in plot 2 still match the tool 1 colors established in plot 1. I have another column utilizing the alphanumeric row legend so this is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to assign different row states for each plot?&lt;/P&gt;&lt;P&gt;Below is some sample code similar to my script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Output01_DB = vlistbox(
DT1&amp;lt;&amp;lt;Bivariate (	Y( :y1, ),	X( :time ), 
	Automatic Recalc( 1 ),
	Local Data Filter(
	Location( {2438, 7} ),
	Mode( Select( 0 ), Show( 1 ), Include( 1 ) ),
		Add Filter(0)),
	Where( :z == "1" ),
	SendToReport(
		Dispatch(
			{},
			"2",
			ScaleBox,
			{Min( -4 ), Max( 4 ), Inc( 1 ), Minor Ticks( 1 ),
			Add Ref Line( 0, Dotted, {0, 0, 0}, "middle", 2 ),
			Add Ref Line( 3, Dotted, {255, 0, 0}, "upper", 2 ),
			Add Ref Line( -3, Dotted, {255, 0, 0}, "lower", 2 ),
			Add Ref Line( 2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( 1, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -1, Dotted, {204, 204, 204}, "", 2 )}
		),
		Dispatch( {}, "Bivar Plot", FrameBox,
			{Frame Size( 920, 490 ), Marker Size( 4 ), Row Legend(
				tool_1,
				Color( 1 ),
				Color Theme( "JMP Dark" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
));

Output02_DB = vlistbox(
DT1&amp;lt;&amp;lt;Bivariate (	Y( :y2, ),	X( :time ), 
	Automatic Recalc( 1 ),
	Local Data Filter(
	Location( {2438, 7} ),
	Mode( Select( 0 ), Show( 1 ), Include( 1 ) ),
		Add Filter(0)),
	Where( :z == "1" ),
	SendToReport(
		Dispatch(
			{},
			"2",
			ScaleBox,
			{Min( -4 ), Max( 4 ), Inc( 1 ), Minor Ticks( 1 ),
			Add Ref Line( 0, Dotted, {0, 0, 0}, "middle", 2 ),
			Add Ref Line( 3, Dotted, {255, 0, 0}, "upper", 2 ),
			Add Ref Line( -3, Dotted, {255, 0, 0}, "lower", 2 ),
			Add Ref Line( 2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -2, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( 1, Dotted, {204, 204, 204}, "", 2 ),
			Add Ref Line( -1, Dotted, {204, 204, 204}, "", 2 )}
		),
		Dispatch( {}, "Bivar Plot", FrameBox,
			{Frame Size( 920, 490 ), Marker Size( 4 ), Row Legend(
				tool_2,
				Color( 1 ),
				Color Theme( "JMP Dark" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
));

indiv_report = vlistbox(Output01_DB, Output02_DB)

Z1 header &amp;lt;&amp;lt; append(indiv_report)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;#JSL&amp;nbsp; #JMP12Pro&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:53:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-create-two-independent-row-legends-in-the-same-output/m-p/403085#M65381</guid>
      <dc:creator>jk137</dc:creator>
      <dc:date>2023-06-09T19:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create two independent row legends in the same output tab? JSL JMP12</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-create-two-independent-row-legends-in-the-same-output/m-p/403110#M65382</link>
      <description>&lt;P&gt;I'm quite certain that there is no method for doing what you ask -- having multiple independent row-states for any given table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you can create what you're wanting by subsetting the columns of interest for each plot and then use each subsetted table for each respective plot.&amp;nbsp; If you're adamant about having the tables be linked (as in, selections in one table should then select the same rows in all tables) -- this can be done using rowstate handlers, but it is a bit finicky to implement in practice (I've done it, but unless you're quite comfortable with JSL programming and scope resolution you will probably run into issues).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 01:04:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-create-two-independent-row-legends-in-the-same-output/m-p/403110#M65382</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2021-07-22T01:04:33Z</dc:date>
    </item>
  </channel>
</rss>

