<?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 change heatmap color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826215#M100707</link>
    <description>&lt;P&gt;If you want to assign different colors to different entries, you can use value colors (as suggested by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;) and apply a color theme:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1736273915473.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71740iC7800A2C170494A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1736273915473.png" alt="hogi_1-1736273915473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or select all entries in the legend and assign a theme via the right click menu:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1736273964926.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71741i0345F9FE78C10E52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1736273964926.png" alt="hogi_2-1736273964926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 18:19:41 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-01-07T18:19:41Z</dc:date>
    <item>
      <title>How to change heatmap color</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826197#M100703</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my current script I have the individual sites defined as a certain color on the legend, but doing it like this won't carry over if the "sites" are labeled differently. I was thinking maybe "color cell" would be able to change all the cells to one color, but I'm having issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you script a single color for all the cells?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;gb=Graph Builder(&lt;BR /&gt;Size( 879, 653 ),&lt;BR /&gt;Show Control Panel( 0 ),&lt;BR /&gt;Variables( X( :SiteX ), Y( :SiteY ), Color( :Site ) ),&lt;BR /&gt;Elements( Heatmap( X, Y, Legend( 44 ), Label( "Label by Value" ), Color Theme("Solid","gray") ) ),&lt;BR /&gt;Local Data Filter( Close Outline( 1 ) ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch( {}, "SiteX", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),&lt;BR /&gt;Dispatch( {}, "SiteY", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),&lt;BR /&gt;Dispatch( {}, "400", ScaleBox,&lt;BR /&gt;{Legend Model(&lt;BR /&gt;44,&lt;BR /&gt;Properties( 0, {Fill Color( 32 )}, Item ID( "01", 1 ) ),&lt;BR /&gt;Properties( 1, {Fill Color( 32 )}, Item ID( "02", 1 ) ),&lt;BR /&gt;Properties( 2, {Fill Color( 32 )}, Item ID( "03", 1 ) ),&lt;BR /&gt;Properties( 3, {Fill Color( 32 )}, Item ID( "04", 1 ) ),&lt;BR /&gt;Properties( 4, {Fill Color( 32 )}, Item ID( "05", 1 ) ),&lt;BR /&gt;Properties( 5, {Fill Color( 32 )}, Item ID( "06", 1 ) ),&lt;BR /&gt;Properties( 6, {Fill Color( 32 )}, Item ID( "07", 1 ) )&lt;/P&gt;&lt;P&gt;.........&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 17:52:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826197#M100703</guid>
      <dc:creator>CoxPorcupine721</dc:creator>
      <dc:date>2025-01-07T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to change heatmap color</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826209#M100704</link>
      <description>&lt;P&gt;Maybe you can use Value Colors column property on Site column?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1736272800902.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71738iDDDADCCD6970D708/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1736272800902.png" alt="jthi_1-1736272800902.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Or do you wish to have same color for all sites? If that is the case you can create new column with just single value and use that as Color instead of Site column&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:01:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826209#M100704</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-07T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change heatmap color</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826210#M100705</link>
      <description>&lt;P&gt;If you want to use Color to get meaningful labels - but keep the color constant, you can use the legend server to batch assign a color to all entries:&lt;BR /&gt;A) via the GUI&lt;BR /&gt;select all entries and assign the color:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1736274061535.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71742iD45D831E6322A083/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1736274061535.png" alt="hogi_3-1736274061535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;B) via JSL (version 1, tested with JMP17.2):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

gb=Graph Builder(

Variables( X( :height ), Y( :weight ), Color( :sex ) ),
Elements( Heatmap( X, Y )),
);


// talk to the legend server and batch assign a color
legend = gb &amp;lt;&amp;lt; get legend server();
legenditems= (legend &amp;lt;&amp;lt; get legend items)[1];
legenditems &amp;lt;&amp;lt;  set properties ({Fill Color( 1 )}) //bug in JMP 18&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:21:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826210#M100705</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-07T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change heatmap color</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826211#M100706</link>
      <description>&lt;P&gt;Due to a bug in JMP18, this approach doesn't work ...&lt;BR /&gt;B - version 2) As a workaround, you can talk with every entry individually and assign the color:&lt;BR /&gt;&lt;LI-MESSAGE title="issue with get legend items" uid="825469" url="https://community.jmp.com/t5/Discussions/issue-with-get-legend-items/m-p/825469#U825469" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&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 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

gb=Graph Builder(

Variables( X( :height ), Y( :weight ), Color( :sex ) ),
Elements( Heatmap( X, Y ,Label( "Label by Value" ))),
);


// talk to the legend server and batch assign a color
legend = gb &amp;lt;&amp;lt; get legend server();
legenditems= (legend &amp;lt;&amp;lt; get legend items)[1];


for(i=1, i&amp;lt;= Nitems(legenditems), i++, 
Eval(Eval Expr(item = legend  &amp;lt;&amp;lt; Get Legend Item(1, Expr(i))));
	item &amp;lt;&amp;lt;  set properties ({Fill Color( 1 )})
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:21:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826211#M100706</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-07T18:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to change heatmap color</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826215#M100707</link>
      <description>&lt;P&gt;If you want to assign different colors to different entries, you can use value colors (as suggested by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;) and apply a color theme:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1736273915473.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71740iC7800A2C170494A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1736273915473.png" alt="hogi_1-1736273915473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or select all entries in the legend and assign a theme via the right click menu:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1736273964926.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71741i0345F9FE78C10E52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1736273964926.png" alt="hogi_2-1736273964926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:19:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-heatmap-color/m-p/826215#M100707</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-07T18:19:41Z</dc:date>
    </item>
  </channel>
</rss>

