984ba3b31499263d5e71deff44dbf7f23abc2bda
chmalee
  Fri Dec 13 12:01:13 2019 -0800
hgTrack makes a color key for the pLI track, refs #20394

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 393a075..b047624 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -8540,30 +8540,46 @@
         hPrintf(" ");
         }
 
     hButtonWithOnClick("hgt.setWidth", "resize", "Resize image width to browser window size", "hgTracksSetWidth()");
     hPrintf(" ");
 
     hButtonWithMsg("hgt.refresh", "refresh","Refresh image");
 
     hPrintf("<BR>\n");
 
     if( chromosomeColorsMade )
         {
         hPrintf("<B>Chromosome Color Key:</B><BR> ");
         hPrintf("<IMG SRC = \"../images/new_colorchrom.gif\" BORDER=1 WIDTH=596 HEIGHT=18 ><BR>\n");
         }
+    if (doPliColors)
+        {
+        hPrintf("<B>pLI Color Key:</B><BR> ");
+        hPrintf("<table style=\"border: 1px solid black\"><tr>\n");
+        hPrintf("<td style=\"background-color:rgb(0,244,153)\">&lt; .1</td>\n");
+        hPrintf("<td style=\"background-color:rgb(74,240,94)\">&lt; .2</td>\n");
+        hPrintf("<td style=\"background-color:rgb(127,233,58)\">&lt; .3</td>\n");
+        hPrintf("<td style=\"background-color:rgb(165,224,26)\">&lt; .4</td>\n");
+        hPrintf("<td style=\"background-color:rgb(191,210,22)\">&lt; .5</td>\n");
+        hPrintf("<td style=\"background-color:rgb(210,191,13)\">&lt; .6</td>\n");
+        hPrintf("<td style=\"background-color:rgb(224,165,8)\">&lt; .7</td>\n");
+        hPrintf("<td style=\"background-color:rgb(233,127,5)\">&lt; .8</td>\n");
+        hPrintf("<td style=\"background-color:rgb(240,74,3)\">&lt; .9</td>\n");
+        hPrintf("<td style=\"background-color:rgb(244,0,2)\">&lt; 1</td>\n");
+        hPrintf("</tr></table>\n");
+        }
 
     if (showTrackControls)
 	{
 	/* Display viewing options for each track. */
         /* Chuck: This is going to be wrapped in a table so that
          * the controls don't wrap around randomly */
         hPrintf("<table border=0 cellspacing=1 cellpadding=1 width=%d>\n", CONTROL_TABLE_WIDTH);
         hPrintf("<tr><td align='left'>\n");
 
         hButtonWithOnClick("hgt.collapseGroups", "collapse all", "collapse all track groups",
                            "return vis.expandAllGroups(false)");
         hPrintf("</td>");
 
         hPrintf("<td colspan='%d' class='infoText' align='CENTER' nowrap>"
                 "Use drop-down controls below and press refresh to alter tracks "