Changeset 7175:63dd840e291f in orange


Ignore:
Timestamp:
01/25/11 15:43:28 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
45952b313f7e7d019d0bc8c0fe831396d5355515
Message:
  • added Multi Correspondence Analysis widget
Location:
orange/OrangeWidgets/Visualize
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize/OWCorrespondenceAnalysis.py

    r7168 r7175  
    33<icon>icons/CorrespondenceAnalysis.png</icon> 
    44<priority>3300</priority> 
     5<contact>Ales Erjavec (ales.erjavec(@ at @)fri.uni-lj.si</contact> 
    56""" 
    67 
     
    2930        self.xPrincipalAxis = 0 
    3031        self.yPrincipalAxis = 1 
    31         self.pointSize = 5 
     32        self.pointSize = 6 
    3233        self.alpha = 240 
    3334        self.jitter = 0 
     
    3738        self.autoSend = 0 
    3839         
     40        self.loadSettings() 
     41         
    3942        # GUI 
    4043        self.graph = OWGraph(self) 
     
    4548        self.controlAreaTab = OWGUI.tabWidget(self.controlArea) 
    4649        # Graph tab 
    47         graphTab = OWGUI.createTabPage(self.controlAreaTab, "Graph") 
     50        self.graphTab = graphTab = OWGUI.createTabPage(self.controlAreaTab, "Graph") 
    4851        self.colAttrCB = OWGUI.comboBox(graphTab, self, "colAttr", "Column Attribute",  
    4952                                        tooltip="Column attribute", 
     
    7780         
    7881        # Settings tab 
    79         settingsTab = OWGUI.createTabPage(self.controlAreaTab, "Settings") 
     82        self.settingsTab = settingsTab = OWGUI.createTabPage(self.controlAreaTab, "Settings") 
    8083        OWGUI.hSlider(settingsTab, self, "pointSize", "Point Size", 3, 20, step=1, 
    8184                      callback=self.setPointSize) 
     
    147150            self.CA = orngCA.CA([[c for c in row] for row in self.contingency]) 
    148151        except numpy.linalg.LinAlgError: 
    149             self.error(0, "Could not compute.") 
     152            self.error(0, "Could not compute the mapping! " + str(ex)) 
    150153            self.graph.removeDrawingCurves(True, True, True) 
    151154            raise 
     
    226229            maxx, maxy = numpy.max(allpoints, axis=0) 
    227230            minx, miny = numpy.min(allpoints, axis=0) 
     231            spanx = maxx - minx 
     232            spany = maxy - miny 
    228233         
    229234        self.graph.setAxisScale(QwtPlot.xBottom, minx - spanx * 0.05, maxx + spanx * 0.05) 
Note: See TracChangeset for help on using the changeset viewer.