Changeset 8828:f93738536fc4 in orange


Ignore:
Timestamp:
08/29/11 14:25:55 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
a2cb79f1d3a38191687c6dc2d7aceb869d1daecb
Message:

resetDialog was being called too soon, resulting in vizrank thinking data has no discrete class

Location:
orange/OrangeWidgets/Visualize Qt
Files:
3 edited

Legend:

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

    r8822 r8828  
    258258        self.value_lines = [] 
    259259 
    260         if not self.have_data or (setAnchors and labels == None): 
     260        if labels == None: 
     261            labels = [anchor[3] for anchor in self.anchor_data] 
     262 
     263        if not self.have_data or len(labels) < 3: 
    261264            self.anchor_data = [] 
    262265            self.update() 
    263266            return 
    264267 
    265         if setAnchors: 
     268        if setAnchors or (args.has_key('XAnchors') and args.has_key('YAnchors') and args.has_key('ZAnchors')): 
    266269            self.setAnchors(args.get('XAnchors'), args.get('YAnchors'), args.get('ZAnchors'), labels) 
    267270 
  • orange/OrangeWidgets/Visualize Qt/OWLinProjQt.py

    r8820 r8828  
    6060 
    6161        name_lower = name.lower() 
     62        self._name_lower = name_lower 
    6263 
    6364        # local variables 
     
    321322        if val: 
    322323            (accuracy, other_results, tableLen, attrList, tryIndex, generalDict) = val 
    323             self.updateGraph(attrList, setAnchors= 1, XAnchors = generalDict.get("XAnchors"), YAnchors = generalDict.get("YAnchors")) 
     324            if "3d" in self._name_lower: 
     325                self.updateGraph(attrList, setAnchors= 1, XAnchors = generalDict.get("XAnchors"), YAnchors = generalDict.get("YAnchors"), ZAnchors = generalDict.get("ZAnchors")) 
     326            else: 
     327                self.updateGraph(attrList, setAnchors= 1, XAnchors = generalDict.get("XAnchors"), YAnchors = generalDict.get("YAnchors")) 
    324328            self.graph.removeAllSelections() 
    325329 
  • orange/OrangeWidgets/Visualize Qt/OWScatterPlot3D.py

    r8820 r8828  
    574574 
    575575    def handleNewSignals(self): 
     576        self.plot.set_data(self.data, self.subset_data) 
    576577        self.vizrank.resetDialog() 
    577         self.plot.set_data(self.data, self.subset_data) 
    578578        self.update_plot() 
    579579        self.send_selection() 
Note: See TracChangeset for help on using the changeset viewer.