Skip to content

Commit e1fb6dd

Browse files
author
Seren
committed
Bugfix:max-value of scatterplot will be set to the higher value (bonferroniThreshold or max_value)
1 parent 7365cc9 commit e1fb6dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/at/gmi/nordborglab/widgets/gwasgeneviewer/client/GWASGeneViewer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,17 @@ public void onUnderlay(UnderlayEvent event) {
280280
}
281281

282282
protected Options setOptions(Dygraphs.Options options){
283+
double maxValue = max_value;
284+
if (maxValue < bonferroniThreshold)
285+
maxValue = bonferroniThreshold;
283286
options.setStrokeWidth(0.000000001);
284287
options.setDrawPoints(true);
285288
options.setPointSize(pointSize);
286289
options.setIncludeZero(true);
287290
options.setWidth(width);
288291
options.setHeight(scatterChartHeight);
289292
options.setAxisLabelFontSize(12);
290-
options.setValueRange(0,(int)max_value + 2);
293+
options.setValueRange(0,(int)maxValue + 2);
291294
options.setxAxisLabelWidth(100);
292295
options.setyAxisLabelWidth(20);
293296
options.setColors(new String[] {color});

0 commit comments

Comments
 (0)