Fixed bug in DAG plot color mapping.
This commit is contained in:
parent
e08dba0924
commit
13b35180ee
|
@ -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)])
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Reference in New Issue