Ignore:
Timestamp:
03/13/12 18:07:23 (2 years ago)
Author:
miha
Branch:
default
rebase_source:
35ae402be498e248719f7bebf3b61746aa62297f
Message:

Fixed a bug in percentil setting and no data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWNxHist.py

    r10511 r10512  
    7878 
    7979    def setPercentil(self): 
     80        if self.matrix is None or self.percentil <= 0: 
     81            return 
     82 
    8083        self.spinLowerThreshold = self.histogram.minValue 
    8184        # flatten matrix, sort values and remove identities (self.matrix[i][i]) 
     
    108111        upp = max(values) 
    109112        self.spinLowerThreshold = self.spinUpperThreshold = math.floor(low - (0.03 * (upp - low))) 
    110         self.generateGraph() 
     113 
    111114        self.attributeCombo.clear() 
    112115        vars = [] 
     
    128131            except: 
    129132                print "error adding ", var, " to the attribute combo" 
     133 
     134        self.setPercentil() 
     135        self.generateGraph() 
    130136 
    131137    def changeLowerSpin(self): 
Note: See TracChangeset for help on using the changeset viewer.