Changeset 8256:c672b27945bb in orange


Ignore:
Timestamp:
08/22/11 14:22:05 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
a92f7d97ab94c7bdecd21746372a8a422662012c
Message:

Adjust the probability scale in Distributions. Now probabilities are visible even if they are 0 or 1.

File:
1 edited

Legend:

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

    r8228 r8256  
    277277        else: 
    278278            self.enableYRaxis(0) 
    279             self.setAxisScale(yRight, 0.0, 1.0, 0.1) 
     279            self.setAxisScale(yRight, -0.05, 1.05, 0.1) 
    280280 
    281281        self.probCurveKey = self.addCurve(xBottom, yRight) 
     
    292292            return 
    293293        self.enableYRaxis(0) 
    294         self.setAxisScale(yRight, 0.0, 1.0, 0.1) 
     294        self.setAxisScale(yRight, -0.05, 1.05, 0.1) 
    295295        self.setYRaxisTitle("") 
    296296        keys = self.hdata.keys() 
     
    446446        self.graph = OWDistributionGraphQt(self, self.mainArea) 
    447447        self.mainArea.layout().addWidget(self.graph) 
    448         self.graph.setAxisScale(yRight, 0.0, 1.0, 0.1) 
     448        self.graph.setAxisScale(yRight, -0.05, 1.05, 0.1) 
    449449        self.connect(self.graphButton, SIGNAL("clicked()"), self.graph.saveToFile) 
    450450         
Note: See TracChangeset for help on using the changeset viewer.