From 13b35180ee4c56e727e8c436e021d2d6d62c27bf Mon Sep 17 00:00:00 2001 From: einarr Date: Wed, 8 Aug 2007 12:24:14 +0000 Subject: [PATCH] Fixed bug in DAG plot color mapping. --- fluents/plots.py | 2 +- workflows/gobrowser.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fluents/plots.py b/fluents/plots.py index e99160a..3dedc0a 100644 --- a/fluents/plots.py +++ b/fluents/plots.py @@ -1036,7 +1036,7 @@ class PlotThresholder: icnodes = ds.existing_identifiers('go-terms', self._map_ids) icindices = ds.get_indices('go-terms', icnodes) - a = scipy.ravel(ds.asarray()[icindices]) + a = ds.asarray()[icindices].sum(1) good = set(scipy.array(icnodes)[(a>=min) & (a<=max)]) diff --git a/workflows/gobrowser.py b/workflows/gobrowser.py index e4d7cb5..4530da1 100644 --- a/workflows/gobrowser.py +++ b/workflows/gobrowser.py @@ -769,9 +769,9 @@ class ThresholdDagPlot(DagPlot, plots.PlotThresholder): a = ds.asarray() a_max = max(a[a-inf]) - self._sb_min.set_range(0, a_max) - self._sb_min.set_value(a_min) - self._sb_max.set_range(0, a_max) - self._sb_max.set_value(a_max) + self._sb_min.set_range(a_min-0.1, a_max+0.1) + self._sb_min.set_value(a_min-0.1) + self._sb_max.set_range(a_min-0.1, a_max+0.1) + self._sb_max.set_value(a_max+0.1)