Changeset 8260:e967b6f2af75 in orange


Ignore:
Timestamp:
08/22/11 17:43:00 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
b9cf74d26a7753554710e2182f8aae771e64f36c
Message:

Explicitely set the scale for continuous X attribute in Distributions, fixes bug #891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize Qt/OWDistributionsQt.py

    r8256 r8260  
    134134 
    135135        if self.variableContinuous: 
    136             self.setXlabels(None) 
     136            self.set_axis_labels(xBottom, None) 
    137137        else: 
    138138            labels = self.data.domain[self.attributeName].values.native() 
    139             self.setXlabels(labels) 
     139            self.set_axis_labels(xBottom, labels) 
    140140             
    141141        self.calcHistogramAndProbGraph() 
     
    352352        if self.showProbabilities: 
    353353            self.enableYRaxis(1) 
     354            if self.variableContinuous: 
     355                self.set_axis_scale(xBottom, self.probGraphValues[0][0], self.probGraphValues[-1][0]) 
    354356          #  self.setShowYRaxisTitle(self.showYRaxisTitle) 
    355357          #  self.setYRaxisTitle(self.YRaxisTitle) 
     
    366368                    lps.append(ps[self.targetValue] - cis[self.targetValue]) 
    367369                else: 
    368                     ## We make 3x as many point in both cases.  
     370                    ## We make 3x as many points in both cases.  
    369371                    ## This way animations look better when switching the ConfidenceIntervals on and off 
    370372                    xs.extend([cn] * 3) 
Note: See TracChangeset for help on using the changeset viewer.