Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Fixed bug in DAG plot color mapping.

This commit is contained in:
Einar Ryeng 2007-08-08 12:24:14 +00:00
parent e08dba0924
commit 13b35180ee
2 changed files with 5 additions and 5 deletions

View File

@ -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)])

View File

@ -769,9 +769,9 @@ class ThresholdDagPlot(DagPlot, plots.PlotThresholder):
a = ds.asarray()
a_max = max(a[a<inf])
a_min = min(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)