Skip to content

Commit a10cce7

Browse files
committed
Fixes another bug that prevents global range values from being calculated and set correctly to heat-strips and line charts.
1 parent 7b0feba commit a10cce7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/control/ControlPanelMediator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ private CyCustomGraphics2<?> createChart(ChartData data, ChartType type, ColorSc
537537
List<Double> range = ChartUtil.calculateGlobalRange(options.getNetworkView().getModel(), columns);
538538

539539
props.put("cy_range", range);
540+
props.put("cy_autoRange", false);
540541
props.put("cy_globalRange", true);
541542
}
542543

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/util/ChartUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static List<Double> calculateGlobalRange(CyNetwork network, List<CyColumn
3434
Map<String, CyColumn> columnMap = columns.stream().collect(Collectors.toMap(CyColumn::getName, c -> c));
3535

3636
for (final CyColumnIdentifier colId : dataColumns) {
37-
final CyColumn column = columnMap.get(colId);
37+
final CyColumn column = columnMap.get(colId.getColumnName());
3838

3939
if (column == null)
4040
continue;

0 commit comments

Comments
 (0)