<?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: Colors of bivariate fit in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538784#M75986</link>
    <description>&lt;P&gt;You are removing the selection of the Value Color when you are specifying the Line Color on the Fit Where.&amp;nbsp; Below is an example where the colors remain the same&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1661871156294.png" style="width: 637px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45082iA8713ABF40C425A2/image-dimensions/637x348?v=v2" width="637" height="348" role="button" title="txnelson_0-1661871156294.png" alt="txnelson_0-1661871156294.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1661871214763.png" style="width: 704px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45083iD5F2ECEA24CF80AF/image-dimensions/704x398?v=v2" width="704" height="398" role="button" title="txnelson_1-1661871214763.png" alt="txnelson_1-1661871214763.png" /&gt;&lt;/span&gt;&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 = Current Data Table();
Show( :Run &amp;lt;&amp;lt; get property( "Value Colors" ) );
:Run &amp;lt;&amp;lt; set property( "Value Colors", {"10" = 35, "14" = 68, "24" = 77, "32" = 75} );
:Run &amp;lt;&amp;lt; color cell by value( 1 );
Show( :Run &amp;lt;&amp;lt; get property( "Value Colors" ) );


Bivariate(
	Y( :Result ),
	X( :Date ),
	Fit Where( :Run == "10", Fit Line() ),
	Fit Where( :Run == "14", Fit Line() ),
	Fit Where( :Run == "24", Fit Line() ),
	Fit Where( :Run == "32", Fit Line() ),
	Local Data Filter(

		Add Filter(
			columns( :Date ),
			Where( :Date &amp;gt;= 12Mar2022:05:43:20 &amp;amp; :Date &amp;lt;= 06May2022 )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				Run,
				Color( 1 ),
				Color Theme( "" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Aug 2022 14:55:01 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-08-30T14:55:01Z</dc:date>
    <item>
      <title>Colors of bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538440#M75949</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; I plot a bivariate fit and fit a linear line for each "run". The colors on the row legend match the colors of the linear fit lines (see pic 1)&lt;/P&gt;&lt;P&gt;When I apply a local data filter and change the "Date" and therefore the "Run" may change, the colors on the row legend do now match with the colors of the linear fit lines. See pic 2, the Run 14 is red dots but the linear fit line is green.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way that the row legend and linear fit line can always be the same? I have attached the data table and script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;picture 1: colors in the row legend match with the colors in the linear fit line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B1234_4-1661790208552.png" style="width: 293px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45065iD9090C38123D59A9/image-dimensions/293x283?v=v2" width="293" height="283" role="button" title="B1234_4-1661790208552.png" alt="B1234_4-1661790208552.png" /&gt;&lt;/span&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;picture 2: colors in the row legend do not&amp;nbsp; match with the colors in the linear fit line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B1234_5-1661790243870.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45066i4EC86FB811C41485/image-size/medium?v=v2&amp;amp;px=400" role="button" title="B1234_5-1661790243870.png" alt="B1234_5-1661790243870.png" /&gt;&lt;/span&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;</description>
      <pubDate>Fri, 09 Jun 2023 17:08:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538440#M75949</guid>
      <dc:creator>B1234</dc:creator>
      <dc:date>2023-06-09T17:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Colors of bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538467#M75950</link>
      <description>&lt;P&gt;Set the Column Property, Value Colors for the Run column, and when the local filter changes, it will always use the Value Colors set for each llevel of the Run column.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:01:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538467#M75950</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-29T17:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Colors of bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538702#M75974</link>
      <description>&lt;P&gt;I think that I am still doing something wrong. This is the code that I am using. The data table is attached to the first post in this tread. When I move the local data filter by date, one of the Runs disappears and the colours change. What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
Show( :Run &amp;lt;&amp;lt; get property( "Value Colors" ) );
:Run &amp;lt;&amp;lt; set property( "Value Colors", {} );
:Run &amp;lt;&amp;lt; color cell by value( 1 );
Show( :Run &amp;lt;&amp;lt; get property( "Value Colors" ) );

 

Bivariate(
	Y( :Result ),
	X( :Date ),
	Fit Where( :Run == "10", Fit Line( {Line Color( {} )} ) ),
	Fit Where( :Run == "14", Fit Line( {Line Color( {} )} ) ),
	Fit Where( :Run == "24", Fit Line( {Line Color( {} )} ) ),
	Fit Where( :Run == "32", Fit Line( {Line Color( {} )} ) ),
	Local Data Filter(

		Add Filter(
			columns( :Date ),
			Where( :Date &amp;gt;= 12Mar2022:05:43:20 &amp;amp; :Date &amp;lt;= 06May2022 )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				Run,
				Color( 1 ),
				Color Theme( "" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2022 14:32:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538702#M75974</guid>
      <dc:creator>B1234</dc:creator>
      <dc:date>2022-08-30T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Colors of bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538784#M75986</link>
      <description>&lt;P&gt;You are removing the selection of the Value Color when you are specifying the Line Color on the Fit Where.&amp;nbsp; Below is an example where the colors remain the same&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1661871156294.png" style="width: 637px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45082iA8713ABF40C425A2/image-dimensions/637x348?v=v2" width="637" height="348" role="button" title="txnelson_0-1661871156294.png" alt="txnelson_0-1661871156294.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1661871214763.png" style="width: 704px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45083iD5F2ECEA24CF80AF/image-dimensions/704x398?v=v2" width="704" height="398" role="button" title="txnelson_1-1661871214763.png" alt="txnelson_1-1661871214763.png" /&gt;&lt;/span&gt;&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 = Current Data Table();
Show( :Run &amp;lt;&amp;lt; get property( "Value Colors" ) );
:Run &amp;lt;&amp;lt; set property( "Value Colors", {"10" = 35, "14" = 68, "24" = 77, "32" = 75} );
:Run &amp;lt;&amp;lt; color cell by value( 1 );
Show( :Run &amp;lt;&amp;lt; get property( "Value Colors" ) );


Bivariate(
	Y( :Result ),
	X( :Date ),
	Fit Where( :Run == "10", Fit Line() ),
	Fit Where( :Run == "14", Fit Line() ),
	Fit Where( :Run == "24", Fit Line() ),
	Fit Where( :Run == "32", Fit Line() ),
	Local Data Filter(

		Add Filter(
			columns( :Date ),
			Where( :Date &amp;gt;= 12Mar2022:05:43:20 &amp;amp; :Date &amp;lt;= 06May2022 )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				Run,
				Color( 1 ),
				Color Theme( "" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2022 14:55:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538784#M75986</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-30T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Colors of bivariate fit</title>
      <link>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538792#M75988</link>
      <description>&lt;P&gt;Worked like a charm, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 15:05:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Colors-of-bivariate-fit/m-p/538792#M75988</guid>
      <dc:creator>B1234</dc:creator>
      <dc:date>2022-08-30T15:05:48Z</dc:date>
    </item>
  </channel>
</rss>

