From: Jim Procter Date: Fri, 21 Jun 2013 13:29:41 +0000 (+0100) Subject: JAL-1241 - generate colour for all annotation values within range X-Git-Tag: Jalview_2_9~232^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c98e8e641751e3ce37b7689e0c25526c8f9e6091;p=jalview.git JAL-1241 - generate colour for all annotation values within range --- diff --git a/src/jalview/schemes/AnnotationColourGradient.java b/src/jalview/schemes/AnnotationColourGradient.java index 218b5fa..729065c 100755 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -228,14 +228,14 @@ public class AnnotationColourGradient extends ResidueColourScheme if (thresholdIsMinMax && annotation.threshold != null && aboveAnnotationThreshold == ABOVE_THRESHOLD - && annotation.annotations[j].value > annotation.threshold.value) + && annotation.annotations[j].value >= annotation.threshold.value) { range = (annotation.annotations[j].value - annotation.threshold.value) / (annotation.graphMax - annotation.threshold.value); } else if (thresholdIsMinMax && annotation.threshold != null && aboveAnnotationThreshold == BELOW_THRESHOLD - && annotation.annotations[j].value > annotation.graphMin) + && annotation.annotations[j].value >= annotation.graphMin) { range = (annotation.annotations[j].value - annotation.graphMin) / (annotation.threshold.value - annotation.graphMin); @@ -250,7 +250,7 @@ public class AnnotationColourGradient extends ResidueColourScheme { currentColour = colourScheme.findColour(c, j, seq); } - else if (range != 0) + else { dr = rr * range + r1; dg = gg * range + g1;