Changeset 8259:69683b0e57b3 in orange


Ignore:
Timestamp:
08/22/11 16:08:02 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
8dd5b14335999e64dff68a5b756ed4865d3c937b
Message:

Make cut curves and lookahead gain in Discretize Qt visible again

File:
1 edited

Legend:

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

    r8219 r8259  
    190190 
    191191        if self.lookaheadCurveX and self.master.showLookaheadLine: 
    192             self.lookaheadCurveKey = self.addCurve("", Qt.black, Qt.black, 1, style = Qt.SolidLine, symbol = OWPoint.NoSymbol, xData = self.lookaheadCurveX, yData = self.lookaheadCurveY, lineWidth = 1, autoScale = 1, x_axis_key=yLeft) 
     192            self.lookaheadCurveKey = self.addCurve("", Qt.black, Qt.black, 1, style = OWCurve.Lines, symbol = OWPoint.NoSymbol, xData = self.lookaheadCurveX, yData = self.lookaheadCurveY, lineWidth = 1, autoScale = 1, y_axis_key=yLeft) 
    193193 
    194194        if not noUpdate: 
     
    218218 
    219219        for cut in self.curCutPoints: 
    220             c = self.addCurve("", Qt.blue, Qt.blue, 1, style = Qt.DashLine, symbol = OWPoint.NoSymbol, xData = [cut, cut], yData = [.9, 0.1], autoScale = 1, y_axis_key = yRight) 
     220            c = self.addCurve("", Qt.blue, Qt.blue, 1, style = OWCurve.Lines, symbol = OWPoint.NoSymbol, xData = [cut, cut], yData = [.9, 0.1], autoScale = 1, y_axis_key = yRight) 
    221221            self.cutLineKeys.append(c) 
    222222 
     
    247247    def addCutPoint(self, cut): 
    248248        self.curCutPoints.append(cut) 
    249         c = self.addCurve("", Qt.blue, Qt.blue, 1, style = Qt.DashLine, symbol = OWPoint.NoSymbol, xData = [cut, cut], yData = [1.0, 0.015], autoScale = 1, y_axis_key = yRight) 
     249        c = self.addCurve("", Qt.blue, Qt.blue, 1, style = OWCurve.Lines, lineWidth = 2, xData = [cut, cut], yData = [0.1, 0.9], autoScale = 1, y_axis_key = yRight) 
    250250        self.cutLineKeys.append(c) 
    251251        c.curveInd = len(self.cutLineKeys) - 1 
Note: See TracChangeset for help on using the changeset viewer.