src/hg/instinct/hgHeatmap2/drawingCode.c 1.77

1.77 2009/10/07 00:17:25 jzhu
Index: src/hg/instinct/hgHeatmap2/drawingCode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/drawingCode.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -b -B -U 4 -r1.76 -r1.77
--- src/hg/instinct/hgHeatmap2/drawingCode.c	6 Oct 2009 23:40:06 -0000	1.76
+++ src/hg/instinct/hgHeatmap2/drawingCode.c	7 Oct 2009 00:17:25 -0000	1.77
@@ -1430,12 +1430,12 @@
 
 int height = hgHeatmapDefaultSummaryHeight; 
 int width = hghSubgroupDefaultPixWidth / 2;
 vgSetClip(vg, 0, 0, hghSubgroupDefaultPixWidth, height);
-if (subset ==0) // only draw labels on bottom/green subgroup
-    vgBox(vg, width, 0, width, height, MG_GREEN);
-else if (subset ==1)
+if (subset ==0) // top/red subgroup 0
     vgBox(vg, 0, 0, width, height, MG_RED);
+else if (subset ==1) //bottom/green subgroup 1
+    vgBox(vg, width, 0, width, height, MG_GREEN);
 vgUnclip(vg);
 }
 
 void drawFeatureSummary(struct vGfx *vg, char *chromHeatmap, struct heatmapLay *hl, int yOff,