Skip to content

Commit 3b6ba9b

Browse files
committed
Radial heat map not renderering NaN properly. Refs #262
1 parent 6f7e720 commit 3b6ba9b

File tree

1 file changed

+1
-1
lines changed
  • EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/style/charts/radialheatmap

1 file changed

+1
-1
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/style/charts/radialheatmap/RadialHeatMapLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected JFreeChart createChart(final PieDataset dataset) {
148148
Double v = values.size() > i ? values.get(i) : null;
149149
final Color c;
150150

151-
if (v == null) {
151+
if (v == null || !Double.isFinite(v)) {
152152
c = nanColor;
153153
} else {
154154
if (colorPoints.isEmpty() || colorPoints.size() != colors.size())

0 commit comments

Comments
 (0)