source: orange/orange/OrangeWidgets/Visualize/OWRadviz.py @ 9546:2b6cc6f397fe

Revision 9546:2b6cc6f397fe, 1.8 KB checked in by ales_erjavec <ales.erjavec@…>, 2 years ago (diff)

Renamed widget channel names in line with the new naming rules/convention.
Added backwards compatibility in orngDoc loadDocument to enable loading of schemas saved before the change.

Line 
1"""
2<name>Radviz</name>
3<description>Create a radviz projection.</description>
4<contact>Gregor Leban (gregor.leban@fri.uni-lj.si)</contact>
5<icon>icons/Radviz.png</icon>
6<priority>3100</priority>
7"""
8# Radviz.py
9#
10# Show a radviz projection of the data
11#
12
13from OWLinProj import *
14
15class OWRadviz(OWLinProj):
16    settingsList = ["graph.pointWidth", "graph.jitterSize", "graph.showFilledSymbols", "graph.scaleFactor",
17                    "graph.showLegend", "graph.optimizedDrawing", "graph.useDifferentSymbols", "autoSendSelection", "graph.useDifferentColors",
18                    "graph.tooltipKind", "graph.tooltipValue", "toolbarSelection", "graph.showClusters", "clusterClassifierName", "graph.useAntialiasing",
19                    "valueScalingType", "graph.showProbabilities", "showAllAttributes",
20                    "learnerIndex", "colorSettings", "selectedSchemaIndex", "addProjectedPositions", "VizRankLearnerName"]
21
22    def __init__(self, parent=None, signalManager = None):
23        OWLinProj.__init__(self, parent, signalManager, "Radviz")
24
25        self.inputs = [("Data", ExampleTable, self.setData, Default), ("Data Subset", ExampleTable, self.setSubsetData), ("Features", AttributeList, self.setShownAttributes), ("Evaluation Results", orngTest.ExperimentResults, self.setTestResults), ("VizRank Learner", orange.Learner, self.setVizRankLearner)]
26        self.outputs = [("Selected Data", ExampleTable), ("Other Data", ExampleTable), ("Features", AttributeList)]
27
28
29
30#test widget appearance
31if __name__=="__main__":
32    a=QApplication(sys.argv)
33    ow=OWRadviz()
34    ow.show()
35    #data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\wine.tab")
36    data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\iris.tab")
37    ow.setData(data)
38    ow.handleNewSignals()
39    a.exec_()
Note: See TracBrowser for help on using the repository browser.