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)