<?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: How to get the life distribution platform to use the colors defined in the row states? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-the-life-distribution-platform-to-use-the-colors/m-p/569943#M78037</link>
    <description>&lt;P&gt;My current work around for this is to loop the "CustomStream" and the "Marker" segments and takes the color values from the row states. I do really hope there's a better way though.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt &amp;lt;&amp;lt; Set Row States(
	[6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 6145, 6144, 6144, 1536, 1536, 1536, 1536, 6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 1536,
	1536, 1536, 1536, 6144, 6144, 1536, 1536, 1536, 1536, 1536, 6144, 6144, 1536, 6144, 1536, 1536]
);

//dt = Current Data Table();
dtsum = dt &amp;lt;&amp;lt; Summary( Group( :Sex));
cc = dtsum &amp;lt;&amp;lt; get row states();
Close( dtsum, NoSave );
platform = Life Distribution(
	Perspective( Compare Groups ),
	Y( :height ),
	Grouping( :sex ),
	Confidence Interval Method( Wald ),
	Select Distribution( Distribution, Weibull ),
	Select Scale( Weibull ),
	Tabbed Report( 0 ),

);

reportWindow = platform &amp;lt;&amp;lt; Report;
customSegs = reportWindow["Compare Distribution"]&amp;lt;&amp;lt; Xpath( "//CustomStreamSeg" );
markerSegs = reportWindow["Compare Distribution"]&amp;lt;&amp;lt; Xpath( "//MarkerSeg" );
For( i = 1, i &amp;lt;= N Items( customSegs ), i++,
	customSegs[i] &amp;lt;&amp;lt; {Fill Color( Color Of( As Row State( cc[i] ) ) ), Fill( 0 )};
	customSegs[i] &amp;lt;&amp;lt; {Line Color( Color Of( As Row State( cc[i] ) ) ), Fill( 0 )};
	markerSegs[2*i-1] &amp;lt;&amp;lt; {Color( Color Of( As Row State( cc[i] ) ) )};
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Nov 2022 12:16:22 GMT</pubDate>
    <dc:creator>mvanderaa1</dc:creator>
    <dc:date>2022-11-16T12:16:22Z</dc:date>
    <item>
      <title>How to get the life distribution platform to use the colors defined in the row states?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-life-distribution-platform-to-use-the-colors/m-p/569869#M78036</link>
      <description>&lt;P&gt;In analysis platforms I expected the graph colors to match with what is defined in the row states (if applicable). This does not seem to be the case however. Below example from big class where I applied row state colors based on the Sex variable, and then analyze life distribution grouped by Sex as well. The standard blue and red colors are used instead of the purple and orange in the datatable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mvanderaa1_0-1668594970485.png" style="width: 760px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47380i06F8867EE874F3EE/image-dimensions/760x377?v=v2" width="760" height="377" role="button" title="mvanderaa1_0-1668594970485.png" alt="mvanderaa1_0-1668594970485.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt &amp;lt;&amp;lt; Set Row States(
	[6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 6145, 6144, 6144, 1536, 1536, 1536, 1536, 6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 1536,
	1536, 1536, 1536, 6144, 6144, 1536, 1536, 1536, 1536, 1536, 6144, 6144, 1536, 6144, 1536, 1536]
);
Life Distribution(
	Perspective( Compare Groups ),
	Y( :height ),
	Grouping( :sex ),
	Confidence Interval Method( Wald ),
	Select Distribution( Distribution, Weibull ),
	Select Scale( Weibull ),
	Tabbed Report( 0 ),

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:29:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-life-distribution-platform-to-use-the-colors/m-p/569869#M78036</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2023-06-11T11:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the life distribution platform to use the colors defined in the row states?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-life-distribution-platform-to-use-the-colors/m-p/569943#M78037</link>
      <description>&lt;P&gt;My current work around for this is to loop the "CustomStream" and the "Marker" segments and takes the color values from the row states. I do really hope there's a better way though.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt &amp;lt;&amp;lt; Set Row States(
	[6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 6145, 6144, 6144, 1536, 1536, 1536, 1536, 6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 1536,
	1536, 1536, 1536, 6144, 6144, 1536, 1536, 1536, 1536, 1536, 6144, 6144, 1536, 6144, 1536, 1536]
);

//dt = Current Data Table();
dtsum = dt &amp;lt;&amp;lt; Summary( Group( :Sex));
cc = dtsum &amp;lt;&amp;lt; get row states();
Close( dtsum, NoSave );
platform = Life Distribution(
	Perspective( Compare Groups ),
	Y( :height ),
	Grouping( :sex ),
	Confidence Interval Method( Wald ),
	Select Distribution( Distribution, Weibull ),
	Select Scale( Weibull ),
	Tabbed Report( 0 ),

);

reportWindow = platform &amp;lt;&amp;lt; Report;
customSegs = reportWindow["Compare Distribution"]&amp;lt;&amp;lt; Xpath( "//CustomStreamSeg" );
markerSegs = reportWindow["Compare Distribution"]&amp;lt;&amp;lt; Xpath( "//MarkerSeg" );
For( i = 1, i &amp;lt;= N Items( customSegs ), i++,
	customSegs[i] &amp;lt;&amp;lt; {Fill Color( Color Of( As Row State( cc[i] ) ) ), Fill( 0 )};
	customSegs[i] &amp;lt;&amp;lt; {Line Color( Color Of( As Row State( cc[i] ) ) ), Fill( 0 )};
	markerSegs[2*i-1] &amp;lt;&amp;lt; {Color( Color Of( As Row State( cc[i] ) ) )};
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2022 12:16:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-life-distribution-platform-to-use-the-colors/m-p/569943#M78037</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2022-11-16T12:16:22Z</dc:date>
    </item>
  </channel>
</rss>

