diff --git a/iScore/process/plot.py b/iScore/process/plot.py index d03697b..4a6c216 100644 --- a/iScore/process/plot.py +++ b/iScore/process/plot.py @@ -100,8 +100,9 @@ def get_hitrate(self,data='iScore',ref='capri',normalize=True): index = np.argsort(values) # revert if necessary - if data == 'GraphRank': - index = index[::-1] + if data.endswith("GraphRank"): + index = index[::-1] + #sort the data values = values[index]