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);
{
currentColour = colourScheme.findColour(c, j, seq);
}
- else if (range != 0)
+ else
{
dr = rr * range + r1;
dg = gg * range + g1;