Skip to content

Commit 053197f

Browse files
committed
Change node size mapping range to 2-500
Refs #422
1 parent b0ffa23 commit 053197f

File tree

1 file changed

+4
-3
lines changed
  • EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/style

1 file changed

+4
-3
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/style/EMStyleBuilder.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,9 @@ private void setNodeSize(VisualStyle vs, EMStyleOptions options, ChartType chart
576576
columnName += "_dataset1";
577577
}
578578

579-
int val0 = 10;
580-
int val1 = 474;
579+
// These values used to be 10 and 474 and were changed in EM 3.3.1
580+
// See GitHub issue https://github.com/BaderLab/EnrichmentMapApp/issues/422
581+
int val0 = 2, val1 = 500;
581582

582583
VisualMappingFunction<?, Double> oldMapping = vs.getVisualMappingFunction(NODE_SIZE);
583584

@@ -600,7 +601,7 @@ private void setNodeSize(VisualStyle vs, EMStyleOptions options, ChartType chart
600601

601602
if (!update) // Finally test the boundary ranges
602603
update = MIN_NODE_SIZE != (Double) pt0.getRange().equalValue
603-
|| MAX_NODE_SIZE != (Double) pt1.getRange().equalValue;
604+
|| MAX_NODE_SIZE != (Double) pt1.getRange().equalValue;
604605
}
605606
} catch (NullPointerException | ClassCastException e) {
606607
update = true;

0 commit comments

Comments
 (0)